3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr[] = ["value" => "/m/b/mb01-blue-0.jpg"]; $arr[] = ["value" => "/m/b/mb04-black-0.jpg"]; $arr[] = ["value" => "/m/b/mb04-black-0.jpg"]; $arr = array_map("array_shift", $arr); print_r($arr);
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/We6Vf on line 7 Warning: array_shift(): Argument #1 ($array) must be passed by reference, value given in /in/We6Vf on line 7 Warning: array_shift(): Argument #1 ($array) must be passed by reference, value given in /in/We6Vf on line 7 Array ( [0] => /m/b/mb01-blue-0.jpg [1] => /m/b/mb04-black-0.jpg [2] => /m/b/mb04-black-0.jpg )

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:
118.26 ms | 406 KiB | 5 Q