3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=10; $year=2014; // Mantech $startDate = strtotime($month.'/1/'.$year); $stopDate = strtotime('last day of this month ',$startDate); if (date('D',$startDate)!='Sat'){ $startDate = strtotime('next saturday',$startDate); } if (date('D',$stopDate)!='Fri'){ $stopDate = strtotime('next friday',$stopDate); } // See if our contract is a monthly or weekly submit model $startWeek = date('W',$startDate); $stopWeek = date('W',$stopDate); // Format startweek as ISO8601 eg.2014W15 $beginWeek = date('o',$startWeek).'W'.date('W',$startWeek); for ($i=0, $i<=$stopWeek-$startWeek, $i++){ $thisWeek = strtotime($beginWeek.' +'.$i.' weeks'); $mask = ''; for ($j=0, $j<7, $j++){ $thisDay = strtotime('+'.$j.' days',$thisWeek); if ($startDate<=$thisDay or $thisDay<=$stopDate){ $mask=$mask.'1'; } else { $mask=$mask.'0'; } } echo $mask."\n"; } echo (date('Y-m-d',$startDate).' - '.date('Y-m-d',$stopDate)."\n");

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.300.0070.05012.50
5.4.290.0100.05112.50
5.4.280.0140.04412.39
5.4.270.0100.04712.39
5.4.260.0110.03712.39
5.4.250.0070.03612.39
5.4.240.0060.05512.39
5.4.230.0110.04312.38
5.4.220.0060.03812.39
5.4.210.0110.05912.39
5.4.200.0190.06512.39
5.4.190.0080.04212.38
5.4.180.0070.04012.38
5.4.170.0050.05712.39
5.4.160.0070.03912.38
5.4.150.0110.04912.38
5.4.140.0060.04312.07
5.4.130.0070.05112.05
5.4.120.0070.04312.02
5.4.110.0120.03312.01
5.4.100.0050.03812.02
5.4.90.0050.04012.01
5.4.80.0070.03812.02
5.4.70.0060.03812.01
5.4.60.0060.03712.01
5.4.50.0070.04512.01
5.4.40.0080.04612.00
5.4.30.0090.04712.00
5.4.20.0040.04911.99
5.4.10.0040.03811.99
5.4.00.0020.04211.49
5.3.280.0100.03612.71
5.3.270.0060.04112.73
5.3.260.0100.03712.72
5.3.250.0090.03612.72
5.3.240.0050.04012.72
5.3.230.0090.03612.71
5.3.220.0060.03812.68
5.3.210.0070.03912.68
5.3.200.0060.03712.68
5.3.190.0060.03612.68
5.3.180.0090.03312.67
5.3.170.0050.03812.67
5.3.160.0070.03612.67
5.3.150.0060.03812.67
5.3.140.0070.04612.66
5.3.130.0040.06112.66
5.3.120.0060.04112.65
5.3.110.0060.04212.66
5.3.100.0060.05312.12
5.3.90.0110.04912.09
5.3.80.0100.05412.07
5.3.70.0110.04612.07
5.3.60.0080.05012.06
5.3.50.0100.04812.00
5.3.40.0120.07712.00
5.3.30.0070.04911.95
5.3.20.0070.04111.73
5.3.10.0070.03511.70
5.3.00.0080.03711.69

preferences:
139.91 ms | 1394 KiB | 7 Q