3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1); $a =& $arr[0]; //$a and $arr[0] are in the same reference set $arr2 = $arr; //not an assignment-by-reference! var_dump($arr2); $arr2[0]++; var_dump($arr2); var_dmp($a); $arr[0]++; var_dump($arr2); var_dump($arr); var_dmp($a);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> &int(1) } array(1) { [0]=> &int(2) } Fatal error: Uncaught Error: Call to undefined function var_dmp() in /in/NWYmI:10 Stack trace: #0 {main} thrown in /in/NWYmI on line 10
Process exited with code 255.

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:
54.02 ms | 401 KiB | 8 Q