3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[]=array('id'=>'a', 'content'=>'lemon'); $array[]=array('id'=>'b', 'content'=>'apple'); $array[]=array('id'=>'c', 'content'=>'banana'); $array[]=array('id'=>'d', 'content'=>'cherry'); $first = 'apple'; $k = array_search($first, array_column($array, 'content')); $array = array_merge(array_slice($array, $k), array_slice($array, 0, $k)); print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [id] => b [content] => apple ) [1] => Array ( [id] => c [content] => banana ) [2] => Array ( [id] => d [content] => cherry ) [3] => Array ( [id] => a [content] => lemon ) )

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