3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; $b = 'test'; $c = null; $test1 = function() use (&$a, &$b, &$c) { $value = 1; $a = &$value; $b = &$value; $c = array( 'c' => &$value, ); }; $test1(); echo 'a: '; var_dump($a); echo 'b: '; var_dump($b); echo 'c: '; var_dump($c); exit;
Output for git.master, git.master_jit, rfc.property-hooks
a: NULL b: string(4) "test" c: array(1) { ["c"]=> int(1) }

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:
55.54 ms | 1340 KiB | 4 Q