3v4l.org

run code in 300+ PHP versions simultaneously
<?php $workTimeRange = [ ['time'=>600], ['time'=>900], ['time'=>3600], ['time'=>4000], ]; $arrWorkRange = []; for ($i = 0; $i < ceil(count($workTimeRange) / 2); $i+=2) { echo $i.PHP_EOL; array_push($arrWorkRange, [ 'start_time' => $workTimeRange[$i]['time'], 'end_time' => $workTimeRange[$i+1]['time'], ]); print_r($arrWorkRange); } print_R($arrWorkRange); for($i=0;$i<count($workTimeRange);$i+=2){ echo $i.PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
0 Array ( [0] => Array ( [start_time] => 600 [end_time] => 900 ) ) Array ( [0] => Array ( [start_time] => 600 [end_time] => 900 ) ) 0 2

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