3v4l.org

run code in 300+ PHP versions simultaneously
<?php function appendZ($array) { $array[0] .= 'z'; $array[1] .= 'z'; $array[2] .= 'z'; $array[3] .= 'z'; } $a = ['a', 'b', 'c', 'd']; $v = &$a[2]; appendZ($a); print_r($a);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => a [1] => b [2] => cz [3] => d )

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:
51.38 ms | 405 KiB | 5 Q