3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = count(get_defined_vars()); $bla = 'beta'; $cla = 'gamma'; $undef; @$nothing = $undef; $c = get_defined_vars(); //@xdebug_debug_zval('nothing'); //echo 'Declared vars:<br>'; //var_dump(xdebug_get_declared_vars()); echo 'Defined vars:<br>'; var_dump(array_slice($c, $a + 1));
Output for git.master, git.master_jit, rfc.property-hooks
Defined vars:<br>array(3) { ["bla"]=> string(4) "beta" ["cla"]=> string(5) "gamma" ["nothing"]=> 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:
57.72 ms | 401 KiB | 8 Q