3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2013-04-25'); $start->modify('first day of this month'); $end = new DateTime('2014-04-25'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { 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.0090.00618.56
8.3.50.0120.00622.01
8.3.40.0070.00718.79
8.3.30.0070.00719.22
8.3.20.0040.00420.33
8.3.10.0050.00222.09
8.3.00.0080.00022.48
8.2.180.0110.00717.00
8.2.170.0110.00422.96
8.2.160.0070.01021.06
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0060.00317.75
8.2.110.0050.00522.43
8.2.100.0060.00619.59
8.2.90.0040.00419.17
8.2.80.0030.00619.91
8.2.70.0000.00917.88
8.2.60.0030.00718.05
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0050.00218.12
8.2.20.0050.00317.84
8.2.10.0060.00317.82
8.2.00.0000.00718.00
8.1.280.0070.00725.92
8.1.270.0080.00022.25
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.99
8.1.230.0120.00019.23
8.1.220.0060.00317.77
8.1.210.0000.00818.77
8.1.200.0030.00617.60
8.1.190.0040.00417.51
8.1.180.0000.00818.10
8.1.170.0000.00818.90
8.1.160.0070.00322.16
8.1.150.0000.00818.86
8.1.140.0060.00317.64
8.1.130.0000.00717.92
8.1.120.0040.00417.74
8.1.110.0070.00017.72
8.1.100.0040.00417.71
8.1.90.0040.00417.60
8.1.80.0070.00017.70
8.1.70.0070.00017.74
8.1.60.0040.00417.79
8.1.50.0040.00417.57
8.1.40.0040.00417.76
8.1.30.0030.00517.70
8.1.20.0000.00917.88
8.1.10.0040.00417.83
8.1.00.0040.00417.74
8.0.300.0040.00418.77
8.0.290.0050.00217.30
8.0.280.0000.00818.60
8.0.270.0040.00417.32
8.0.260.0060.00017.07
8.0.250.0030.00317.24
8.0.240.0000.00717.10
8.0.230.0000.00917.24
8.0.220.0040.00417.17
8.0.210.0000.00717.17
8.0.200.0040.00417.22
8.0.190.0040.00417.22
8.0.180.0040.00417.22
8.0.170.0060.00317.08
8.0.160.0000.00717.18
8.0.150.0040.00417.15
8.0.140.0040.00417.11
8.0.130.0060.00013.52
8.0.120.0070.00017.12
8.0.110.0040.00417.13
8.0.100.0040.00417.01
8.0.90.0020.00517.07
8.0.80.0090.00617.14
8.0.70.0040.00417.17
8.0.60.0030.00417.06
8.0.50.0050.00317.07
8.0.30.0110.00817.30
8.0.20.0110.00817.47
8.0.10.0000.00817.35
8.0.00.0080.00916.90
7.4.330.0060.00015.00
7.4.320.0000.00616.82
7.4.300.0000.00616.79
7.4.290.0000.00716.86
7.4.280.0000.00816.82
7.4.270.0030.00316.71
7.4.260.0030.00716.84
7.4.250.0040.00416.63
7.4.240.0020.00516.73
7.4.230.0000.00716.66
7.4.220.0100.01716.65
7.4.210.0090.01016.74
7.4.200.0000.00716.65
7.4.190.0000.00716.68
7.4.160.0060.00916.63
7.4.150.0100.01317.40
7.4.140.0110.01117.86
7.4.130.0130.00616.61
7.4.120.0100.00716.82
7.4.110.0160.01316.91
7.4.100.0100.00716.68
7.4.90.0210.00016.66
7.4.80.0080.01119.39
7.4.70.0110.00616.76
7.4.60.0150.00316.62
7.4.50.0050.00316.93
7.4.40.0030.01322.77
7.4.30.0120.00416.52
7.4.00.0070.01115.12
7.3.330.0030.00313.22
7.3.320.0000.00613.27
7.3.310.0030.00516.39
7.3.300.0000.00716.46
7.3.290.0160.00316.50
7.3.280.0090.00816.46
7.3.270.0170.00717.40
7.3.260.0130.00316.86
7.3.250.0070.01216.52
7.3.240.0140.00316.56
7.3.230.0060.01516.69
7.3.210.0060.01616.54
7.3.200.0090.01019.39
7.3.190.0070.01416.48
7.3.180.0030.01316.49
7.3.170.0030.01316.69
7.3.160.0040.01216.43
7.3.120.0070.01014.92
7.2.330.0080.00816.83
7.2.320.0090.01316.84
7.2.310.0070.01116.94
7.2.300.0140.00316.87
7.2.290.0000.01717.03
7.2.00.0120.00619.41
7.1.100.0030.01018.38
7.1.70.0050.00317.29
7.1.60.0130.01019.82
7.1.50.0130.01017.30
7.1.00.0030.07722.44
7.0.200.0070.00017.06
7.0.140.0100.06722.00
7.0.100.0200.03719.94
7.0.90.0070.07719.87
7.0.80.0070.08319.93
7.0.70.0070.08020.00
7.0.60.0030.08720.10
7.0.50.0030.07720.29
7.0.40.0030.04320.10
7.0.30.0030.05720.08
7.0.20.0100.05020.01
7.0.10.0070.06020.03
7.0.00.0030.07020.16
5.6.280.0000.07721.04
5.6.250.0070.07720.62
5.6.240.0070.08320.67
5.6.230.0030.06320.57
5.6.220.0070.08720.66
5.6.210.0070.05020.68
5.6.200.0100.08321.06
5.6.190.0170.08021.00
5.6.180.0030.08721.02
5.6.170.0130.07721.09
5.6.160.0030.08720.95
5.6.150.0100.08020.94
5.6.140.0070.05021.09
5.6.130.0070.08021.05
5.6.120.0170.05721.05
5.6.110.0130.06321.10
5.6.100.0130.07720.93
5.6.90.0100.04720.91
5.6.80.0100.04320.34
5.6.70.0170.07020.37
5.6.60.0170.04020.53
5.6.50.0070.06020.36
5.6.40.0070.06720.49
5.6.30.0100.07720.43
5.6.20.0030.06720.37
5.6.10.0070.06720.39
5.6.00.0200.06720.39
5.5.380.0100.08720.35
5.5.370.0030.08320.39
5.5.360.0130.07020.55
5.5.350.0100.07320.36
5.5.340.0030.08020.91
5.5.330.0100.04720.77
5.5.320.0100.07720.91
5.5.310.0100.07320.77
5.5.300.0030.07020.64
5.5.290.0130.07320.91
5.5.280.0030.05720.82
5.5.270.0130.07320.77
5.5.260.0170.07020.86
5.5.250.0030.04320.73
5.5.240.0030.08020.16
5.5.230.0070.08020.14
5.5.220.0000.06320.19
5.5.210.0070.06320.27
5.5.200.0030.08320.18
5.5.190.0100.06320.21
5.5.180.0030.06719.99
5.5.160.0070.05720.24
5.5.150.0030.07320.23
5.5.140.0100.07020.18
5.5.130.0070.07720.24
5.5.120.0300.03020.07
5.5.110.0030.07019.98
5.5.100.0070.07720.13
5.5.90.0030.07020.15
5.5.80.0170.06320.09
5.5.70.0000.08320.11
5.5.60.0130.06719.93
5.5.50.0030.08320.07
5.5.40.0070.07320.07
5.5.30.0070.07720.05
5.5.20.0000.04720.04
5.5.10.0170.06020.04
5.5.00.0100.04020.09
5.4.450.0170.07019.39
5.4.440.0100.04719.38
5.4.430.0100.07319.31
5.4.420.0100.07719.07
5.4.410.0100.06719.19
5.4.400.0170.06318.79
5.4.390.0130.06719.04
5.4.380.0070.06719.07
5.4.370.0030.04318.83
5.4.360.0030.05319.00
5.4.350.0030.08018.99
5.4.340.0030.03719.00
5.4.320.0070.07719.15
5.4.310.0030.03718.89
5.4.300.0100.06718.97
5.4.290.0070.03718.90
5.4.280.0000.04018.89
5.4.270.0100.05719.07
5.4.260.0070.08718.74
5.4.250.0030.03718.84
5.4.240.0070.04019.04
5.4.230.0130.07019.14
5.4.220.0030.05019.04
5.4.210.0130.04718.90
5.4.200.0100.05318.98
5.4.190.0100.07318.96
5.4.180.0030.05019.14
5.4.170.0130.06318.98
5.4.160.0070.06019.13
5.4.150.0030.03718.95
5.4.140.0030.07016.07
5.4.130.0070.04316.23
5.4.120.0030.05016.29
5.4.110.0030.06716.23
5.4.100.0000.07316.25
5.4.90.0070.03716.32
5.4.80.0070.07316.39
5.4.70.0030.05716.18
5.4.60.0030.06016.40
5.4.50.0130.06316.39
5.4.40.0100.07316.41
5.4.30.0070.06016.20
5.4.20.0070.06716.38
5.4.10.0030.07016.16
5.4.00.0070.07715.61
5.3.290.0000.07714.53
5.3.280.0030.04714.38
5.3.270.0100.04014.50
5.3.260.0030.07014.39
5.3.250.0130.06714.52
5.3.240.0070.03314.40
5.3.230.0100.04314.39
5.3.220.0000.06314.53
5.3.210.0030.05314.51
5.3.200.0000.05314.37
5.3.190.0000.08014.36
5.3.180.0100.07014.38
5.3.170.0100.07314.54
5.3.160.0170.05714.52
5.3.150.0070.06314.36
5.3.140.0130.03314.52
5.3.130.0000.08014.34
5.3.120.0100.07314.52
5.3.110.0070.07714.52
5.3.100.0070.07013.91
5.3.90.0070.06713.84
5.3.80.0130.06313.75
5.3.70.0030.07713.98
5.3.60.0030.07313.97
5.3.50.0030.06013.81
5.3.40.0100.07013.88
5.3.30.0100.07313.83
5.3.20.0030.04713.59
5.3.10.0100.07013.58
5.3.00.0030.06013.55
5.2.170.0030.06311.59
5.2.160.0100.05711.59
5.2.150.0070.05011.59
5.2.140.0100.05711.59
5.2.130.0000.06311.59
5.2.120.0070.04711.59
5.2.110.0000.05311.59
5.2.100.0100.03711.59
5.2.90.0070.03311.59
5.2.80.0070.03011.59
5.2.70.0030.03311.59
5.2.60.0070.02711.59
5.2.50.0070.04011.59
5.2.40.0100.05711.59
5.2.30.0000.03311.59
5.2.20.0070.02711.59
5.2.10.0100.05711.59
5.2.00.0070.02711.59
5.1.60.0000.04711.59
5.1.50.0030.03311.59
5.1.40.0000.03011.59
5.1.30.0000.05711.59
5.1.20.0070.05011.59
5.1.10.0070.04011.59
5.1.00.0100.05011.59
5.0.50.0070.04311.59
5.0.40.0030.02311.59
5.0.30.0030.04711.59
5.0.20.0030.04711.59
5.0.10.0000.04711.59
5.0.00.0070.04311.59
4.4.90.0000.01711.59
4.4.80.0030.03011.59
4.4.70.0000.02711.59
4.4.60.0030.01311.59
4.4.50.0070.03011.59
4.4.40.0030.04011.59
4.4.30.0000.02711.59
4.4.20.0030.01711.59
4.4.10.0070.03311.59
4.4.00.0000.05311.59
4.3.110.0070.03011.59
4.3.100.0030.01311.59
4.3.90.0030.02011.59
4.3.80.0000.03011.59
4.3.70.0030.02011.59
4.3.60.0030.03311.59
4.3.50.0000.03311.59
4.3.40.0030.02311.59
4.3.30.0100.02711.59
4.3.20.0000.03311.59
4.3.10.0000.01711.59
4.3.00.0000.02011.59

preferences:
40.59 ms | 401 KiB | 5 Q