3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { $month = $dt->format('m'); $year = $dt->format('Y'); if(date('Y',strtotime('2012-05-06')) != $year && date('m',strtotime('2012-05-06')) != $month) echo $dt->format("Y-m") . PHP_EOL; }

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.0100.01016.50
8.3.50.0060.01222.04
8.3.40.0070.01018.92
8.3.30.0030.01019.17
8.3.20.0080.00020.13
8.3.10.0000.00820.61
8.3.00.0030.00519.38
8.2.180.0040.01516.88
8.2.170.0110.00722.96
8.2.160.0120.00320.22
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00322.18
8.2.110.0060.00322.25
8.2.100.0120.00018.03
8.2.90.0090.00019.25
8.2.80.0000.00818.00
8.2.70.0090.00017.75
8.2.60.0000.00918.04
8.2.50.0000.01018.07
8.2.40.0040.00418.34
8.2.30.0040.00419.44
8.2.20.0080.00017.99
8.2.10.0040.00418.27
8.2.00.0040.00417.99
8.1.280.0140.00725.92
8.1.270.0040.00723.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.91
8.1.230.0040.01119.17
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01317.60
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0050.00318.76
8.1.160.0050.00322.11
8.1.150.0050.00218.94
8.1.140.0040.00417.72
8.1.130.0030.00317.90
8.1.120.0000.00817.70
8.1.110.0050.00317.74
8.1.100.0050.00317.76
8.1.90.0000.00817.73
8.1.80.0040.00417.60
8.1.70.0070.00017.69
8.1.60.0080.00017.82
8.1.50.0040.00417.68
8.1.40.0080.00017.61
8.1.30.0040.00417.88
8.1.20.0040.00417.75
8.1.10.0050.00317.72
8.1.00.0040.00417.76
8.0.300.0040.00420.92
8.0.290.0040.00417.13
8.0.280.0070.00018.49
8.0.270.0000.00916.98
8.0.260.0000.00817.39
8.0.250.0050.00217.13
8.0.240.0000.00717.11
8.0.230.0030.00317.18
8.0.220.0040.00417.14
8.0.210.0000.00717.21
8.0.200.0000.00717.27
8.0.190.0080.00317.21
8.0.180.0080.00017.04
8.0.170.0040.00417.21
8.0.160.0000.00817.21
8.0.150.0000.00717.11
8.0.140.0040.00417.02
8.0.130.0040.00413.47
8.0.120.0040.00417.01
8.0.110.0080.00017.16
8.0.100.0040.00417.18
8.0.90.0050.00217.14
8.0.80.0120.00317.16
8.0.70.0040.00417.04
8.0.60.0040.00417.06
8.0.50.0080.00017.01
8.0.30.0070.01217.24
8.0.20.0090.01117.47
8.0.10.0040.00417.29
8.0.00.0110.00616.92
7.4.330.0030.00315.27
7.4.320.0000.00716.66
7.4.300.0030.00316.71
7.4.290.0030.00316.78
7.4.280.0070.00016.61
7.4.270.0050.00216.72
7.4.260.0000.00816.55
7.4.250.0020.00516.54
7.4.240.0030.00316.72
7.4.230.0070.00016.91
7.4.220.0100.01716.75
7.4.210.0030.01016.82
7.4.200.0000.00816.59
7.4.160.0090.01416.91
7.4.150.0100.01017.40
7.4.140.0150.00517.86
7.4.130.0090.00816.72
7.4.120.0060.01116.61
7.4.110.0150.00616.89
7.4.100.0060.01116.66
7.4.90.0090.00916.75
7.4.80.0140.01016.86
7.4.70.0060.00916.82
7.4.60.0100.00716.79
7.4.50.0000.00916.80
7.4.40.0030.01416.85
7.4.30.0060.01016.73
7.4.00.0030.01315.40
7.3.330.0030.00313.30
7.3.320.0030.00313.20
7.3.310.0000.00716.45
7.3.300.0000.00716.38
7.3.290.0110.00416.48
7.3.280.0080.01016.47
7.3.270.0060.01317.40
7.3.260.0060.01216.61
7.3.250.0070.01416.51
7.3.240.0180.00616.71
7.3.230.0160.00316.81
7.3.210.0070.01016.81
7.3.200.0100.01319.39
7.3.190.0100.00716.46
7.3.180.0150.00616.55
7.3.170.0070.01116.78
7.3.160.0120.00616.77
7.3.10.0080.00616.99
7.3.00.0100.00316.89
7.2.330.0110.00916.80
7.2.320.0090.01116.95
7.2.310.0110.00716.73
7.2.300.0120.00616.90
7.2.290.0120.00416.75
7.2.130.0130.00317.15
7.2.120.0040.01117.26
7.2.110.0030.00917.27
7.2.100.0080.00517.16
7.2.90.0070.01017.15
7.2.80.0100.00317.12
7.2.70.0170.00317.08
7.2.60.0090.00716.98
7.2.50.0000.01517.29
7.2.40.0090.00017.22
7.2.30.0060.00617.27
7.2.20.0080.00416.95
7.2.10.0000.01217.18
7.2.00.0040.00918.21
7.1.250.0100.00615.71
7.1.100.0060.00618.17
7.1.70.0000.00717.38
7.1.60.0170.00719.32
7.1.50.0100.01017.14
7.1.00.0000.08022.48
7.0.200.0000.01016.73
7.0.140.0070.07022.12
7.0.110.0130.07719.95
7.0.100.0130.07019.94
7.0.90.0130.07719.95
7.0.80.0100.07320.04
7.0.70.0070.08719.82
7.0.60.0170.07719.98
7.0.50.0030.05320.24
7.0.40.0070.08020.25
7.0.30.0030.08020.09
7.0.20.0130.06720.22
7.0.10.0000.09020.21
7.0.00.0070.07720.25
5.6.260.0030.07320.74
5.6.250.0130.08020.68
5.6.240.0170.08020.67
5.6.230.0100.07720.47
5.6.220.0100.08020.64
5.6.210.0030.04720.70
5.6.200.0100.06321.14
5.6.190.0070.08321.19
5.6.180.0130.07721.29
5.6.170.0000.08321.02
5.6.160.0070.03720.93
5.6.150.0070.07721.14
5.6.140.0070.07721.26
5.6.130.0070.07321.12
5.6.120.0070.08021.14
5.6.110.0130.07321.28
5.6.100.0130.08320.94
5.6.90.0100.07021.23
5.6.80.0000.08020.56
5.6.70.0130.07320.31
5.6.60.0000.08320.51
5.6.50.0030.05020.32
5.6.40.0030.08320.50
5.6.30.0070.07320.29
5.6.20.0070.07720.62
5.6.10.0130.07320.31
5.6.00.0070.07020.29
5.5.380.0100.07720.55
5.5.370.0030.07020.57
5.5.360.0100.07720.35
5.5.350.0130.07320.43
5.5.340.0130.07020.96
5.5.330.0070.04720.91
5.5.320.0070.04320.98
5.5.310.0030.08320.91
5.5.300.0070.07021.02
5.5.290.0070.07720.96
5.5.280.0030.09020.89
5.5.270.0070.08720.86
5.5.260.0030.09320.74
5.5.250.0130.07020.77
5.5.240.0070.08320.43
5.5.230.0070.06320.12
5.5.220.0070.06720.16
5.5.210.0230.05320.34
5.5.200.0200.07020.25
5.5.190.0070.07720.32
5.5.180.0070.07320.32
5.5.160.0030.08020.39
5.5.150.0130.07020.32
5.5.140.0100.07720.16
5.5.130.0030.08020.27
5.5.120.0030.04020.25
5.5.110.0030.08020.13
5.5.100.0100.06720.21
5.5.90.0130.07320.08
5.5.80.0070.08320.19
5.5.70.0130.07720.02
5.5.60.0170.06020.14
5.5.50.0130.07020.19
5.5.40.0070.08020.03
5.5.30.0000.07320.01
5.5.20.0100.04720.01
5.5.10.0130.07319.93
5.5.00.0100.08020.19
5.4.450.0100.07019.49
5.4.440.0070.05319.25
5.4.430.0130.05319.27
5.4.420.0100.06719.34
5.4.410.0030.08019.22
5.4.400.0100.06318.93
5.4.390.0130.06719.16
5.4.380.0070.07319.02
5.4.370.0170.06018.98
5.4.360.0100.07718.95
5.4.350.0000.08319.03
5.4.340.0130.06019.04
5.4.320.0130.07019.01
5.4.310.0100.07018.98
5.4.300.0070.04318.94
5.4.290.0130.06718.92
5.4.280.0170.06019.03
5.4.270.0030.07319.25
5.4.260.0170.07019.00
5.4.250.0070.08019.24
5.4.240.0100.07018.95
5.4.230.0030.07019.11
5.4.220.0070.07318.92
5.4.210.0030.08319.27
5.4.200.0070.04319.07
5.4.190.0000.08719.11
5.4.180.0030.08018.98
5.4.170.0100.07319.27
5.4.160.0030.07718.93
5.4.150.0030.08018.96
5.4.140.0000.05316.28
5.4.130.0070.04316.26
5.4.120.0030.07316.58
5.4.110.0100.07316.59
5.4.100.0030.07316.34
5.4.90.0030.06716.46
5.4.80.0100.07016.44
5.4.70.0130.03716.34
5.4.60.0000.06716.52
5.4.50.0130.06316.43
5.4.40.0130.06716.31
5.4.30.0070.07716.36
5.4.20.0030.08316.26
5.4.10.0130.06316.47
5.4.00.0030.08015.91
5.3.290.0070.07314.49
5.3.280.0100.06714.50
5.3.270.0000.08314.44
5.3.260.0070.07714.39
5.3.250.0030.04714.43
5.3.240.0030.07714.53
5.3.230.0100.07314.38
5.3.220.0100.07314.59
5.3.210.0030.08014.63
5.3.200.0170.06314.45
5.3.190.0100.07314.51
5.3.180.0000.07714.64
5.3.170.0030.07714.48
5.3.160.0130.06314.47
5.3.150.0030.05014.66
5.3.140.0130.07014.66
5.3.130.0100.04314.45
5.3.120.0130.06714.57
5.3.110.0070.07714.41
5.3.100.0130.05713.92
5.3.90.0170.06714.03
5.3.80.0100.06713.86
5.3.70.0030.04313.95
5.3.60.0030.07014.08
5.3.50.0070.03313.88
5.3.40.0130.06713.88
5.3.30.0200.06313.84
5.3.20.0070.07313.58
5.3.10.0130.04313.56
5.3.00.0100.06713.70
5.2.170.0030.06012.43
5.2.160.0070.06012.43
5.2.150.0030.06712.43
5.2.140.0070.06012.43
5.2.130.0100.05712.43
5.2.120.0000.04312.43
5.2.110.0070.05712.43
5.2.100.0030.06312.43
5.2.90.0100.06012.43
5.2.80.0070.05712.43
5.2.70.0070.06012.43
5.2.60.0030.06312.43
5.2.50.0100.06312.43
5.2.40.0000.06312.43
5.2.30.0100.04012.43
5.2.20.0030.06312.43
5.2.10.0100.04312.43
5.2.00.0030.06012.43
5.1.60.0030.05312.43
5.1.50.0130.04312.43
5.1.40.0030.04712.43
5.1.30.0070.05712.43
5.1.20.0070.05312.43
5.1.10.0070.03712.43
5.1.00.0070.05312.43
5.0.50.0030.03712.43
5.0.40.0070.02012.43
5.0.30.0000.03712.43
5.0.20.0070.03312.43
5.0.10.0030.02012.43
5.0.00.0070.05712.43
4.4.90.0000.03712.43
4.4.80.0000.03012.43
4.4.70.0030.03712.43
4.4.60.0030.03712.43
4.4.50.0030.03712.43
4.4.40.0030.05312.43
4.4.30.0000.03712.43
4.4.20.0030.02012.43
4.4.10.0030.03312.43
4.4.00.0000.03012.43
4.3.110.0030.01312.43
4.3.100.0000.01712.43
4.3.90.0000.02312.43
4.3.80.0030.02312.43
4.3.70.0000.01712.43
4.3.60.0070.01712.43
4.3.50.0000.01712.43
4.3.40.0000.02312.43
4.3.30.0000.01712.43
4.3.20.0000.02012.43
4.3.10.0000.01712.43
4.3.00.0030.02012.43

preferences:
52.78 ms | 401 KiB | 5 Q