3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(call_user_func_array("array_shift", array(array("Test #1")))); echo "\n"; $arg1 = array("Test #2"); var_export(call_user_func_array("array_shift", array($arg1))); echo "\n"; $args = array(array("Test #3")); var_export(call_user_func_array("array_shift", $args)); echo "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: array_shift(): Argument #1 ($array) must be passed by reference, value given in /in/qoPje on line 3 'Test #1' Warning: array_shift(): Argument #1 ($array) must be passed by reference, value given in /in/qoPje on line 7 'Test #2' Warning: array_shift(): Argument #1 ($array) must be passed by reference, value given in /in/qoPje on line 11 'Test #3'

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:
111.04 ms | 402 KiB | 8 Q