3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(&$a, &$b, &$c) { $a = 42; } $r = 1; $foo = [&$r, 2, 3]; $bar = [3, 4, 5]; // this does not make the zvals referenced. a($foo[0], $foo[1], $foo[2]); $diff = array_diff($foo, $bar); $foo[0] = 'hi'; var_dump($diff);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> &string(2) "hi" [1]=> int(2) }

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:
42.9 ms | 1376 KiB | 4 Q