Skip to content
Learn Netverks

Lesson

Step 5/36 14% through track

playground-workflow

Playground workflow

Last reviewed May 28, 2026 Content v20260528
Track mode
server_script
Means
Server runner
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Playground workflow: the syntax, APIs, and habits you need before advancing in PHP.

Teams ship Playground workflow on every PHP codebase—skipping it leaves gaps in debugging and code reviews.

You will apply Playground workflow in contexts like: LAMP/LEMP stacks, Laravel apps, WordPress themes/plugins, and shared hosting.

Write PHP in the editor and click Run on server—the dev runner executes your script and returns stdout/stderr (set LEARNING_RUNNER_ENABLED=true locally). Also confirm you see runner output or the configured-unavailable message.

At the start of the track—complete before lessons that assume you understand the server playground.

Get the most from each lesson's server editor with a deliberate loop—the same habits that transfer to local PHP, Laravel Sail, or Docker setups.

Recommended workflow

  1. Read the concept section before editing code.
  2. Click Run to execute PHP on the dev runner.
  3. Use echo for readable strings; use print_r() or var_dump() for arrays and types.
  4. Change one idea at a time—a variable, a loop condition, one array key.
  5. Read parse errors carefully—they often point to a missing semicolon or unmatched brace.
  6. Reset the editor if you drift far from the lesson goal.

What the runner can and cannot do

  • Can — run pure PHP: variables, functions, classes, file functions on allowed paths, JSON encode/decode
  • Simulated$_GET/$_POST samples in comments or local arrays; session/cookie behavior explained in prose
  • Needs local setup — real MySQL/PostgreSQL via PDO, Apache/Nginx routing, sending HTTP headers to a browser

Review HTML forms if GET vs POST feels fuzzy—PHP reads what the browser sends.

Self-check

  1. When should you use var_dump instead of echo?
  2. Why change one concept at a time while learning?

Challenge

First run

  1. Click Run with the default code.
  2. Confirm PHP_VERSION prints in the output.
  3. Add a second echo with your name.

Done when: the terminal shows the PHP version and your custom message.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Runner configured?
  • stdout vs var_dump?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump