3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=11; $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); } // If our startDate isn't a Monday, grab the previous Monday if (date('D',$startDate)!='Mon'){ $prevMonday = strtotime('last Monday',$startDate); $startWeek = date('W',$prevMonday); } else { $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)
8.3.70.0110.00416.63
8.3.60.0120.00418.55
8.3.50.0080.01022.14
8.3.40.0110.01119.01
8.3.30.0040.01119.21
8.3.20.0050.00320.36
8.3.10.0080.00023.66
8.3.00.0040.00419.00
8.2.180.0080.00816.63
8.2.170.0040.01222.96
8.2.160.0100.01020.41
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00420.89
8.2.110.0060.00319.45
8.2.100.0080.00318.09
8.2.90.0050.00319.35
8.2.80.0030.00617.97
8.2.70.0050.00318.00
8.2.60.0040.00817.80
8.2.50.0050.00518.07
8.2.40.0040.00420.10
8.2.30.0000.00818.35
8.2.20.0030.00618.00
8.2.10.0040.00418.14
8.2.00.0000.00817.90
8.1.280.0100.00725.92
8.1.270.0100.01024.04
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0050.00521.27
8.1.230.0060.00617.78
8.1.220.0030.00617.78
8.1.210.0000.00818.77
8.1.200.0030.00617.50
8.1.190.0030.00617.48
8.1.180.0080.00018.10
8.1.170.0040.00418.77
8.1.160.0000.00722.02
8.1.150.0040.00418.83
8.1.140.0050.00317.60
8.1.130.0000.00718.02
8.1.120.0100.00017.59
8.1.110.0040.00417.63
8.1.100.0000.00817.65
8.1.90.0000.00817.65
8.1.80.0030.00617.76
8.1.70.0070.00017.63
8.1.60.0040.00417.81
8.1.50.0040.00417.75
8.1.40.0080.00017.60
8.1.30.0050.00317.95
8.1.20.0050.00317.87
8.1.10.0040.00417.72
8.1.00.0000.00717.71
8.0.300.0100.00018.77
8.0.290.0000.00917.00
8.0.280.0000.00718.52
8.0.270.0070.00017.41
8.0.260.0000.00617.32
8.0.250.0070.00017.30
8.0.240.0000.00717.31
8.0.230.0050.00217.32
8.0.220.0040.00417.30
8.0.210.0000.00817.25
8.0.200.0030.00317.29
8.0.190.0070.00017.30
8.0.180.0050.00217.14
8.0.170.0040.00417.15
8.0.160.0070.00017.18
8.0.150.0000.00717.05
8.0.140.0000.00717.09
8.0.130.0030.00313.58
8.0.120.0000.00817.23
8.0.110.0040.00417.20
8.0.100.0040.00417.24
8.0.90.0070.00017.11
8.0.80.0130.00917.26
8.0.70.0000.00717.26
8.0.60.0020.00517.14
8.0.50.0050.00317.26
8.0.30.0150.00617.35
8.0.20.0130.00517.42
8.0.10.0030.00517.39
8.0.00.0080.01516.96
7.4.330.0050.00015.16
7.4.320.0000.00816.83
7.4.300.0030.00316.61
7.4.290.0070.00016.80
7.4.280.0050.00316.63
7.4.270.0090.00016.68
7.4.260.0000.00716.72
7.4.250.0080.00016.58
7.4.240.0040.00416.71
7.4.230.0030.00316.81
7.4.220.0130.00616.75
7.4.210.0090.00616.59
7.4.200.0030.00516.82
7.4.190.0040.00416.86
7.4.160.0100.00516.86
7.4.150.0160.00317.40
7.4.140.0100.00717.86
7.4.130.0080.00816.79
7.4.120.0090.00816.82
7.4.110.0180.00616.77
7.4.100.0090.00916.77
7.4.90.0100.01016.60
7.4.80.0160.00319.39
7.4.70.0120.00616.70
7.4.60.0090.00916.86
7.4.50.0000.00416.82
7.4.40.0000.01616.60
7.4.30.0150.00516.73
7.4.00.0080.00815.10
7.3.330.0050.00313.26
7.3.320.0000.00513.20
7.3.310.0060.00316.46
7.3.300.0070.00016.38
7.3.290.0070.00716.59
7.3.280.0090.00816.49
7.3.270.0000.01817.40
7.3.260.0030.01416.51
7.3.250.0090.00816.65
7.3.240.0090.00916.55
7.3.230.0110.00616.81
7.3.210.0070.01016.37
7.3.200.0100.01319.39
7.3.190.0080.01516.48
7.3.180.0170.00616.61
7.3.170.0100.00716.71
7.3.160.0130.00316.66
7.3.120.0080.00715.08
7.3.110.0120.00615.07
7.3.100.0100.00714.99
7.3.90.0040.00815.13
7.3.80.0040.00715.04
7.3.70.0030.01014.82
7.3.60.0030.00915.11
7.3.50.0040.00814.91
7.3.40.0080.00315.21
7.3.30.0030.00714.89
7.3.20.0040.01116.64
7.3.10.0040.00716.82
7.3.00.0100.00316.76
7.2.330.0070.01117.04
7.2.320.0150.00916.73
7.2.310.0100.00617.00
7.2.300.0060.01317.05
7.2.290.0090.01216.63
7.2.250.0030.01315.59
7.2.240.0070.01115.16
7.2.230.0040.01515.43
7.2.220.0040.00715.40
7.2.210.0030.01015.14
7.2.200.0060.00615.41
7.2.190.0070.00715.45
7.2.180.0090.00015.40
7.2.170.0030.00715.40
7.1.330.0030.01015.91
7.1.320.0100.00016.05
7.1.310.0100.00316.16
7.1.300.0000.01316.04
7.1.290.0060.00916.08
7.1.280.0040.01116.05
7.1.270.0120.00316.05
7.1.260.0070.01115.64
7.1.100.0060.00918.12
7.1.70.0000.00717.55
7.1.60.0130.00719.70
7.1.50.0040.01817.14
7.1.00.0070.06722.37
7.0.200.0150.00315.23
7.0.140.0000.07722.21
7.0.90.0030.06019.91
7.0.80.0070.05019.90
7.0.70.0300.06719.93
7.0.60.0070.04319.91
7.0.50.0030.04720.20
7.0.40.0030.08720.11
7.0.30.0030.06320.11
7.0.20.0030.05020.07
7.0.10.0070.06020.03
7.0.00.0100.08720.18
5.6.280.0030.07320.92
5.6.240.0130.06720.63
5.6.230.0070.07720.59
5.6.220.0100.08020.61
5.6.210.0030.08020.56
5.6.200.0100.05021.07
5.6.190.0070.05321.04
5.6.180.0030.08721.00
5.6.170.0100.04721.05
5.6.160.0070.09321.04
5.6.150.0130.06321.18
5.6.140.0070.10021.11
5.6.130.0130.06320.95
5.6.120.0100.08321.05
5.6.110.0070.04720.95
5.6.100.0030.04321.02
5.6.90.0170.07320.98
5.6.80.0100.08320.41
5.6.70.0130.07320.43
5.6.60.0170.07720.47
5.6.50.0030.04320.32
5.6.40.0200.06320.37
5.6.30.0100.04320.45
5.6.20.0070.03720.47
5.6.10.0100.03020.41
5.6.00.0070.07720.42
5.5.380.0030.08320.52
5.5.370.0030.05020.48
5.5.360.0100.06020.56
5.5.350.0000.04720.39
5.5.340.0130.05720.88
5.5.330.0000.06320.64
5.5.320.0070.04720.74
5.5.310.0070.04020.84
5.5.300.0030.05020.86
5.5.290.0030.07020.78
5.5.280.0030.08720.83
5.5.270.0030.08720.89
5.5.260.0070.08320.82
5.5.250.0030.06020.61
5.5.240.0100.07720.20
5.5.230.0200.07020.22
5.5.220.0170.05320.16
5.5.210.0070.03720.12
5.5.200.0030.05320.22
5.5.190.0070.07020.00
5.5.180.0030.05720.27
5.5.160.0100.04020.11
5.5.150.0030.07720.11
5.5.140.0070.07320.26
5.5.130.0070.03720.24
5.5.120.0130.03020.09
5.5.110.0000.04320.13
5.5.100.0070.06720.06
5.5.90.0030.04020.01
5.5.80.0000.04320.16
5.5.70.0170.06320.05
5.5.60.0030.04719.97
5.5.50.0030.07020.09
5.5.40.0100.06020.05
5.5.30.0070.06320.05
5.5.20.0130.02720.08
5.5.10.0070.07719.97
5.5.00.0130.05320.05
5.4.450.0030.05019.43
5.4.440.0030.05719.44
5.4.430.0030.04719.13
5.4.420.0000.09019.13
5.4.410.0200.08019.16
5.4.400.0070.04018.95
5.4.390.0170.07019.10
5.4.380.0130.06018.78
5.4.370.0030.06718.95
5.4.360.0100.04319.03
5.4.350.0100.03718.78
5.4.340.0070.05019.05
5.4.320.0070.05018.78
5.4.310.0000.04319.12
5.4.300.0070.04019.04
5.4.290.0100.04018.81
5.4.280.0030.04719.01
5.4.270.0070.03719.11
5.4.260.0030.04319.22
5.4.250.0070.05319.02
5.4.240.0100.06318.97
5.4.230.0000.04019.04
5.4.220.0070.07019.14
5.4.210.0030.07719.11
5.4.200.0170.05719.09
5.4.190.0000.08019.13
5.4.180.0070.07019.11
5.4.170.0100.06718.93
5.4.160.0030.08718.92
5.4.150.0070.03319.01
5.4.140.0070.06016.39
5.4.130.0030.05716.32
5.4.120.0000.04016.41
5.4.110.0030.05716.38
5.4.100.0030.07316.36
5.4.90.0100.07016.46
5.4.80.0070.06716.39
5.4.70.0030.07716.26
5.4.60.0100.06716.35
5.4.50.0070.07016.20
5.4.40.0000.03716.25
5.4.30.0000.07016.30
5.4.20.0030.08016.27
5.4.10.0030.08016.18
5.4.00.0100.06715.79
5.3.290.0030.07714.54
5.3.280.0100.05014.43
5.3.270.0100.05014.61
5.3.260.0000.07314.55
5.3.250.0070.07014.48
5.3.240.0100.05714.57
5.3.230.0070.06314.62
5.3.220.0070.04714.57
5.3.210.0030.08014.53
5.3.200.0030.04014.57
5.3.190.0100.07314.57
5.3.180.0030.07014.54
5.3.170.0030.07714.43
5.3.160.0100.05714.55
5.3.150.0170.07014.44
5.3.140.0000.04014.43
5.3.130.0000.06314.52
5.3.120.0100.07314.51
5.3.110.0100.07014.55
5.3.100.0070.03013.96
5.3.90.0030.07713.99
5.3.80.0130.06713.96
5.3.70.0100.07014.04
5.3.60.0070.03714.00
5.3.50.0100.07013.89
5.3.40.0030.05713.92
5.3.30.0030.04013.91
5.3.20.0030.05713.57
5.3.10.0000.03313.67
5.3.00.0100.05013.65
5.2.170.0000.03310.95
5.2.160.0030.03011.00
5.2.150.0000.05311.15
5.2.140.0000.04011.15
5.2.130.0030.04310.98
5.2.120.0030.02710.93
5.2.110.0030.05311.15
5.2.100.0030.06011.10
5.2.90.0030.04311.14
5.2.80.0030.03711.11
5.2.70.0030.04711.17
5.2.60.0000.03711.06
5.2.50.0000.03010.86
5.2.40.0000.06310.88
5.2.30.0030.04010.97
5.2.20.0030.04311.02
5.2.10.0000.06310.78
5.2.00.0070.05710.73
5.1.60.0070.03710.57
5.1.50.0070.06010.57
5.1.40.0030.02710.57
5.1.30.0030.06010.57
5.1.20.0000.04710.57
5.1.10.0030.03710.57
5.1.00.0070.03010.57
5.0.50.0030.04710.57
5.0.40.0030.03010.57
5.0.30.0000.04310.57
5.0.20.0070.02710.57
5.0.10.0070.02010.57
5.0.00.0030.03310.57
4.4.90.0000.04010.57
4.4.80.0000.01310.57
4.4.70.0000.02310.57
4.4.60.0100.03010.57
4.4.50.0070.02010.57
4.4.40.0070.02310.57
4.4.30.0000.03310.57
4.4.20.0070.02010.57
4.4.10.0030.03310.57
4.4.00.0000.04710.57
4.3.110.0030.02010.57
4.3.100.0100.02710.57
4.3.90.0000.01710.57
4.3.80.0070.04310.57
4.3.70.0070.03010.57
4.3.60.0000.02710.57
4.3.50.0000.03010.57
4.3.40.0070.03710.57
4.3.30.0030.03710.57
4.3.20.0070.02310.57
4.3.10.0030.03010.57
4.3.00.0000.04010.57

preferences:
43.05 ms | 401 KiB | 5 Q