3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(array ( 69 => 3000 ), array ( 69 => 6000 ), array ( 69 => 6000, 70 => 3500 ), array ( 69 => 6000, 70 => 4500 )); var_dump(array_slice($arr, -1)); // last item echo "\n\n"; var_dump(array_slice($arr, -2)); // last two items
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(2) { [69]=> int(6000) [70]=> int(4500) } } array(2) { [0]=> array(2) { [69]=> int(6000) [70]=> int(3500) } [1]=> array(2) { [69]=> int(6000) [70]=> int(4500) } }

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:
71.11 ms | 401 KiB | 8 Q