3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printGlobal(){ global ${$a}; global $b; echo '<br/>-'.${$a}; echo '<br/>-'.$b; echo '<br/>-'.$GLOBALS['c']; } $a = "hello"; $b = 7; $c = 6; printGlobal();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $a in /in/Zj5LF on line 4 Warning: Undefined variable $a in /in/Zj5LF on line 4 Warning: Undefined variable $a in /in/Zj5LF on line 6 <br/>-<br/>-7<br/>-6

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:
53.84 ms | 2532 KiB | 4 Q