3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recent_searches = array( 'test' => array( 'count' => 2, 'last_search' => 1234 ), 'test2' => array( 'count' => 2, 'last_search' => 1234 ), 'test3' => array( 'count' => 2, 'last_search' => 1234 ), 'test4' => array( 'count' => 2, 'last_search' => 1234 ), 'test5' => array( 'count' => 2, 'last_search' => 1234 ), ); $test = array_slice( $recent_searches, 0, 3 ); var_dump( $recent_searches, $test );
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { ["test"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } ["test2"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } ["test3"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } ["test4"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } ["test5"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } } array(3) { ["test"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } ["test2"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } ["test3"]=> array(2) { ["count"]=> int(2) ["last_search"]=> int(1234) } }

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:
43.72 ms | 402 KiB | 8 Q