3v4l.org

run code in 300+ PHP versions simultaneously
<?php ${0xFF} = 'Hello Peter'; // $GLOBALS['255'] ${2 + 2} = 'Hello Peter'; // $GLOBALS['4'] ${'_SESSION'} = 'test'; // $GLOBALS['Hello Peter'] ${'_SERVER'} = 'test'; // $GLOBALS['Hello Peter'] var_dump($GLOBALS, $_SESSION);
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { ["_GET"]=> array(0) { } ["_POST"]=> array(0) { } ["_COOKIE"]=> array(0) { } ["_FILES"]=> array(0) { } ["argv"]=> array(1) { [0]=> string(9) "/in/29LQJ" } ["argc"]=> int(1) ["_SERVER"]=> string(4) "test" [255]=> string(11) "Hello Peter" [4]=> string(11) "Hello Peter" ["_SESSION"]=> string(4) "test" } string(4) "test"

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:
48.46 ms | 402 KiB | 8 Q