3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 256; $array = array( 125 => array(571, 570), 284 => array(567, 566), 256 => array(562, 560), 110 => array(565, 563), ); $position = array_search($key, array_keys($array)); $output = array_slice($array, 0, $position); print_r($output);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 571 [1] => 570 ) [1] => Array ( [0] => 567 [1] => 566 ) )

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