3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info = array('coffee', 'brown', 'caffeine'); // Listing all the variables //list($drink, $color, $power) = $info; echo "$drink is $color and $power makes it special.\n"; // Listing some of them list($drink, , $power) = $info; echo "$drink has $power.\n"; // Or let's skip to only the third one list( , , $power) = $info; echo "I need $power!\n"; // list() doesn't work with strings list($bar) = "abcde"; var_dump($bar); // NULL
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $drink in /in/IXpei on line 6 Warning: Undefined variable $color in /in/IXpei on line 6 Warning: Undefined variable $power in /in/IXpei on line 6 is and makes it special. coffee has caffeine. I need caffeine! NULL

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:
46.28 ms | 401 KiB | 8 Q