3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 0 => 'Sun', 1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri', 6 => 'Sat' ]; $k = array_search(3, array_keys($arr)); $arr = array_slice($arr,$k,null,true) + array_slice($arr,0,$k,true); print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [3] => Wed [4] => Thu [5] => Fri [6] => Sat [0] => Sun [1] => Mon [2] => Tue )

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:
141.22 ms | 405 KiB | 5 Q