3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = sort(array(213, 247, 221, 247, 220, 214, 203, 233, 330, 212, 238, 214, 213, 247, 221, 247, 220, 214, 203, 233)); $var2 = sort(array(307, 357, 319, 357, 317, 308, 293, 336, 476, 306, 343, 308, 307, 357, 319, 357, 317, 308, 293, 336)); print_r(array_diff($var1, $var2));
Output for git.master, git.master_jit
Fatal error: Uncaught Error: sort(): Argument #1 ($array) could not be passed by reference in /in/kM9dv:4 Stack trace: #0 {main} thrown in /in/kM9dv on line 4
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught Error: sort(): Argument #1 ($array) cannot be passed by reference in /in/kM9dv:4 Stack trace: #0 {main} thrown in /in/kM9dv on line 4
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:
33.54 ms | 401 KiB | 8 Q