Skip to content

Bonus Project: LLM

Intro

is a free to use tool that lets you pick from different popular LLMs.

Setup

Click on: in one tab
Click on: in another tab

Your Turn

Enter the following prompt on duck.ai:
Create a single PHP file that displays the current time. Include a message that indicates whether we are in the first or second half of the minute. Also print how many seconds are remaining before the minute is over. Finally, print a list of 10 lines that say "Counting: #" where the # is the number from 1 to 10.
Paste the resulting code from the LLM (duck.ai) into the left side of the PHP Tryit screen and click “Run”

Try this several times with different models. Try to modify what the program does by changing the prompt. How is this the same as the PHP example we did earlier? How is it different?
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.