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); } // 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.60.0120.00616.63
8.3.50.0070.01121.98
8.3.40.0070.01118.85
8.3.30.0080.00619.19
8.3.20.0040.00420.16
8.3.10.0040.00423.52
8.3.00.0040.00420.82
8.2.180.0120.00316.50
8.2.170.0070.00722.96
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0050.00320.96
8.2.110.0090.00320.46
8.2.100.0100.00318.09
8.2.90.0110.00019.76
8.2.80.0000.00919.48
8.2.70.0000.00818.00
8.2.60.0000.00918.16
8.2.50.0030.00618.07
8.2.40.0040.00418.35
8.2.30.0040.00418.25
8.2.20.0050.00317.98
8.2.10.0000.00718.27
8.2.00.0040.00418.14
8.1.280.0030.01425.92
8.1.270.0040.00424.04
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0100.00022.13
8.1.230.0090.00320.96
8.1.220.0080.00017.78
8.1.210.0030.00518.97
8.1.200.0090.00017.48
8.1.190.0060.00317.48
8.1.180.0040.00418.10
8.1.170.0000.00818.89
8.1.160.0040.00418.95
8.1.150.0040.00418.91
8.1.140.0040.00417.68
8.1.130.0070.00017.97
8.1.120.0030.00717.63
8.1.110.0000.00717.63
8.1.100.0030.00517.76
8.1.90.0040.00417.63
8.1.80.0050.00317.64
8.1.70.0030.00317.70
8.1.60.0040.00717.84
8.1.50.0040.00417.76
8.1.40.0040.00417.82
8.1.30.0090.00017.86
8.1.20.0000.00817.96
8.1.10.0000.00817.72
8.1.00.0060.00317.77
8.0.300.0040.00420.11
8.0.290.0060.00317.00
8.0.280.0000.00718.59
8.0.270.0070.00017.41
8.0.260.0000.00817.41
8.0.250.0000.00717.20
8.0.240.0030.00317.34
8.0.230.0000.00717.18
8.0.220.0070.00017.20
8.0.210.0030.00317.27
8.0.200.0030.00317.16
8.0.190.0000.00717.21
8.0.180.0000.00817.16
8.0.170.0000.00717.25
8.0.160.0020.00517.15
8.0.150.0040.00417.08
8.0.140.0040.00417.21
8.0.130.0000.00613.66
8.0.120.0040.00417.20
8.0.110.0070.00017.23
8.0.100.0000.00817.28
8.0.90.0040.00417.22
8.0.80.0100.00717.22
8.0.70.0040.00417.07
8.0.60.0000.00817.26
8.0.50.0050.00317.25
8.0.30.0120.00817.35
8.0.20.0160.00617.51
8.0.10.0030.00517.36
8.0.00.0120.00916.94
7.4.330.0000.00615.20
7.4.320.0060.00316.77
7.4.300.0030.00316.71
7.4.290.0070.00016.82
7.4.280.0040.00416.82
7.4.270.0030.00416.83
7.4.260.0040.00416.78
7.4.250.0000.00916.67
7.4.240.0080.00016.82
7.4.230.0000.00716.83
7.4.220.0110.00716.76
7.4.210.0030.01016.86
7.4.200.0000.00716.91
7.4.190.0030.00316.98
7.4.160.0150.00316.83
7.4.150.0110.00717.40
7.4.140.0140.00617.86
7.4.130.0070.01016.78
7.4.120.0100.00816.92
7.4.110.0150.01116.79
7.4.100.0130.01016.70
7.4.90.0150.00316.88
7.4.80.0090.00919.39
7.4.70.0060.01216.63
7.4.60.0160.00316.93
7.4.50.0000.00416.67
7.4.40.0080.00816.78
7.4.30.0070.01016.92
7.4.00.0090.00715.21
7.3.330.0020.00513.23
7.3.320.0020.00213.20
7.3.310.0030.00416.57
7.3.300.0000.00716.53
7.3.290.0080.00616.46
7.3.280.0050.01116.50
7.3.270.0190.00517.40
7.3.260.0130.00516.58
7.3.250.0130.00616.63
7.3.240.0120.00816.74
7.3.230.0140.01116.71
7.3.210.0140.00316.64
7.3.200.0130.01019.39
7.3.190.0100.00716.49
7.3.180.0070.01016.52
7.3.170.0100.00516.84
7.3.160.0110.00616.43
7.3.120.0060.01015.00
7.3.110.0100.00714.91
7.3.100.0140.00415.05
7.3.90.0070.00715.08
7.3.80.0060.01014.87
7.3.70.0050.00515.16
7.3.60.0070.01015.14
7.3.50.0140.00414.81
7.3.40.0130.00314.99
7.3.30.0040.01115.20
7.3.20.0070.00717.08
7.3.10.0100.00717.10
7.3.00.0000.01316.76
7.2.330.0060.01316.61
7.2.320.0110.00617.06
7.2.310.0120.00616.74
7.2.300.0110.00516.85
7.2.290.0110.01116.79
7.2.250.0080.01215.23
7.2.240.0070.01415.49
7.2.230.0060.00915.31
7.2.220.0070.00715.29
7.2.210.0080.00415.41
7.2.200.0030.01315.29
7.2.190.0030.00615.25
7.2.180.0060.00915.32
7.2.170.0080.00415.05
7.2.60.0070.00717.14
7.2.00.0000.01419.48
7.1.330.0040.01115.93
7.1.320.0000.01316.04
7.1.310.0080.00816.11
7.1.300.0100.00715.84
7.1.290.0110.00416.00
7.1.280.0040.00716.04
7.1.270.0080.00415.98
7.1.260.0060.00915.90
7.1.200.0120.00015.97
7.1.100.0030.01318.31
7.1.70.0070.00317.14
7.1.60.0060.01919.70
7.1.50.0000.01116.84
7.1.00.0030.07722.54
7.0.200.0220.00414.96
7.0.140.0070.07021.99
7.0.100.0100.07320.00
7.0.90.0370.09320.00
7.0.80.0070.07020.01
7.0.70.0400.07719.97
7.0.60.0300.08019.82
7.0.50.0000.06020.39
7.0.40.0130.07720.05
7.0.30.0030.09020.18
7.0.20.0100.04720.17
7.0.10.0070.06720.04
7.0.00.0000.07720.02
5.6.280.0100.07020.92
5.6.250.0170.08020.78
5.6.240.0100.07720.64
5.6.230.0030.08320.63
5.6.220.0030.07720.63
5.6.210.0130.04720.57
5.6.200.0100.08321.03
5.6.190.0070.08721.04
5.6.180.0130.08021.05
5.6.170.0030.05021.07
5.6.160.0130.06721.01
5.6.150.0100.07720.96
5.6.140.0130.08021.04
5.6.130.0070.08721.17
5.6.120.0070.04721.00
5.6.110.0130.08021.13
5.6.100.0000.09321.09
5.6.90.0070.07721.02
5.6.80.0130.07020.39
5.6.70.0030.06320.43
5.6.60.0070.07720.45
5.6.50.0030.05020.46
5.6.40.0030.04320.33
5.6.30.0130.08020.36
5.6.20.0130.06720.45
5.6.10.0130.07720.31
5.6.00.0070.05020.39
5.5.380.0030.08320.46
5.5.370.0070.07320.46
5.5.360.0070.08720.39
5.5.350.0070.04320.34
5.5.340.0170.08720.66
5.5.330.0170.07320.93
5.5.320.0100.07720.87
5.5.310.0200.07020.93
5.5.300.0070.05320.93
5.5.290.0000.09320.91
5.5.280.0030.07020.89
5.5.270.0070.08320.79
5.5.260.0100.07320.92
5.5.250.0000.06020.70
5.5.240.0070.08720.30
5.5.230.0070.06320.22
5.5.220.0030.07020.30
5.5.210.0070.04320.24
5.5.200.0070.07719.98
5.5.190.0130.05020.22
5.5.180.0230.02720.16
5.5.160.0070.08020.23
5.5.150.0070.04020.18
5.5.140.0000.04720.23
5.5.130.0130.07720.27
5.5.120.0070.04320.13
5.5.110.0130.08020.14
5.5.100.0070.04720.07
5.5.90.0100.07320.07
5.5.80.0000.05019.95
5.5.70.0100.04020.09
5.5.60.0100.06720.05
5.5.50.0100.03720.12
5.5.40.0100.05720.05
5.5.30.0070.04320.14
5.5.20.0070.03720.14
5.5.10.0030.07320.05
5.5.00.0100.08020.13
5.4.450.0070.04719.42
5.4.440.0130.06319.27
5.4.430.0100.05019.38
5.4.420.0000.07719.34
5.4.410.0000.08319.10
5.4.400.0100.05718.97
5.4.390.0170.06318.90
5.4.380.0100.04319.23
5.4.370.0070.04019.07
5.4.360.0070.04019.10
5.4.350.0000.07018.83
5.4.340.0070.06019.06
5.4.320.0070.05018.90
5.4.310.0100.03319.03
5.4.300.0100.05019.05
5.4.290.0070.07719.12
5.4.280.0070.04318.97
5.4.270.0170.07019.04
5.4.260.0100.07718.80
5.4.250.0100.03719.14
5.4.240.0030.04318.96
5.4.230.0100.04019.13
5.4.220.0130.06719.11
5.4.210.0100.07019.09
5.4.200.0100.07319.05
5.4.190.0100.07319.15
5.4.180.0030.04019.11
5.4.170.0070.07318.89
5.4.160.0030.08018.98
5.4.150.0030.06719.05
5.4.140.0100.07016.18
5.4.130.0070.07016.41
5.4.120.0070.07016.46
5.4.110.0100.06316.30
5.4.100.0030.03716.38
5.4.90.0070.04716.47
5.4.80.0100.06316.25
5.4.70.0100.02716.48
5.4.60.0100.06316.36
5.4.50.0070.05016.20
5.4.40.0000.07016.26
5.4.30.0030.07716.30
5.4.20.0030.04716.39
5.4.10.0100.07016.36
5.4.00.0070.05715.78
5.3.290.0100.04014.66
5.3.280.0100.07314.61
5.3.270.0030.04014.48
5.3.260.0130.07014.60
5.3.250.0030.07014.60
5.3.240.0170.07014.61
5.3.230.0070.08014.47
5.3.220.0130.05314.43
5.3.210.0070.04014.49
5.3.200.0030.03714.53
5.3.190.0070.04014.56
5.3.180.0100.07314.42
5.3.170.0100.06314.54
5.3.160.0070.04314.43
5.3.150.0130.07014.40
5.3.140.0030.06714.39
5.3.130.0070.04014.52
5.3.120.0030.06714.55
5.3.110.0100.06714.50
5.3.100.0000.07713.87
5.3.90.0030.04314.01
5.3.80.0070.03713.98
5.3.70.0130.07013.94
5.3.60.0030.06313.99
5.3.50.0000.04013.95
5.3.40.0030.08713.93
5.3.30.0030.04313.88
5.3.20.0130.03313.48
5.3.10.0130.06313.52
5.3.00.0070.05013.41
5.2.170.0030.04311.33
5.2.160.0100.05311.33
5.2.150.0070.05711.33
5.2.140.0070.06711.33
5.2.130.0130.05011.33
5.2.120.0100.04011.33
5.2.110.0070.03311.33
5.2.100.0070.05711.33
5.2.90.0100.05711.33
5.2.80.0070.03711.33
5.2.70.0070.04711.33
5.2.60.0130.04311.33
5.2.50.0030.05311.33
5.2.40.0030.04011.33
5.2.30.0070.06011.33
5.2.20.0000.03311.33
5.2.10.0030.05011.33
5.2.00.0000.04311.33
5.1.60.0030.05011.33
5.1.50.0000.04011.33
5.1.40.0030.05311.33
5.1.30.0000.03711.33
5.1.20.0100.05011.33
5.1.10.0070.05011.33
5.1.00.0130.05311.33
5.0.50.0000.02311.33
5.0.40.0070.02711.33
5.0.30.0030.03011.33
5.0.20.0000.02311.33
5.0.10.0000.02311.33
5.0.00.0070.03011.33
4.4.90.0030.03311.33
4.4.80.0000.02311.33
4.4.70.0030.01311.33
4.4.60.0000.02711.33
4.4.50.0030.02711.33
4.4.40.0070.05311.33
4.4.30.0000.02011.33
4.4.20.0000.03711.33
4.4.10.0100.02711.33
4.4.00.0070.02011.33
4.3.110.0000.02311.33
4.3.100.0030.01311.33
4.3.90.0000.02011.33
4.3.80.0100.04311.33
4.3.70.0030.03011.33
4.3.60.0030.02011.33
4.3.50.0030.03711.33
4.3.40.0070.03711.33
4.3.30.0030.01711.33
4.3.20.0000.02011.33
4.3.10.0000.03711.33
4.3.00.0000.01711.33

preferences:
43.29 ms | 401 KiB | 5 Q