3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client_name = $_GET['client_name']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>My form</title> </head> <body> <form method='get'> <label>name: </label> <input type='text' name='client_name' /> <button type='submit'>Submit</button> </form> <p> <?php $client_name ? print $client_name : print 'Please Enter Name'; ?> </p> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "client_name" in /in/YS7g6 on line 2 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>My form</title> </head> <body> <form method='get'> <label>name: </label> <input type='text' name='client_name' /> <button type='submit'>Submit</button> </form> <p> Please Enter Name </p> </body> </html>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.28 ms | 402 KiB | 8 Q