3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2012-01-01'); $start->modify('first day of this month'); $end = new DateTime(); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('6 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.0140.00718.41
8.3.50.0110.01021.26
8.3.40.0070.00719.11
8.3.30.0130.00319.15
8.3.20.0040.00420.34
8.3.10.0040.00423.71
8.3.00.0080.00019.68
8.2.180.0040.01116.75
8.2.170.0070.01022.96
8.2.160.0000.01420.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00017.75
8.2.110.0000.01020.95
8.2.100.0070.00718.09
8.2.90.0030.00519.25
8.2.80.0050.00318.00
8.2.70.0000.01117.88
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00719.36
8.2.30.0030.00718.09
8.2.20.0000.00817.88
8.2.10.0000.00718.21
8.2.00.0040.00418.21
8.1.280.0070.01125.92
8.1.270.0150.00620.38
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00823.99
8.1.230.0110.00017.95
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0060.00317.48
8.1.180.0080.00018.10
8.1.170.0000.00818.78
8.1.160.0000.00721.97
8.1.150.0000.00718.99
8.1.140.0040.00417.72
8.1.130.0030.00317.83
8.1.120.0000.00717.74
8.1.110.0000.00817.71
8.1.100.0040.00417.69
8.1.90.0000.00717.72
8.1.80.0050.00217.73
8.1.70.0000.00917.74
8.1.60.0020.00517.67
8.1.50.0030.00517.79
8.1.40.0040.00417.62
8.1.30.0000.00817.85
8.1.20.0050.00217.71
8.1.10.0030.00617.68
8.1.00.0040.00417.70
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0070.00018.59
8.0.270.0050.00317.46
8.0.260.0070.00017.39
8.0.250.0000.00717.22
8.0.240.0060.00317.22
8.0.230.0030.00517.17
8.0.220.0030.00317.18
8.0.210.0050.00217.15
8.0.200.0030.00317.23
8.0.190.0110.00017.16
8.0.180.0050.00217.22
8.0.170.0070.00017.09
8.0.160.0080.00017.13
8.0.150.0000.00717.19
8.0.140.0040.00417.13
8.0.130.0030.00313.57
8.0.120.0080.00017.05
8.0.110.0040.00416.99
8.0.100.0070.00017.06
8.0.90.0050.00217.06
8.0.80.0120.01017.19
8.0.70.0070.00017.20
8.0.60.0050.00217.04
8.0.50.0040.00417.12
8.0.30.0100.00717.36
8.0.20.0110.00817.40
8.0.10.0000.00817.23
8.0.00.0130.00517.04
7.4.330.0080.00015.08
7.4.320.0050.00316.74
7.4.300.0000.00616.78
7.4.290.0060.00316.89
7.4.280.0050.00216.66
7.4.270.0030.00316.72
7.4.260.0030.00316.59
7.4.250.0000.00816.69
7.4.240.0020.00516.77
7.4.230.0050.00216.91
7.4.220.0140.00716.84
7.4.210.0080.00616.81
7.4.200.0080.00016.91
7.4.160.0130.00316.83
7.4.150.0040.01417.40
7.4.140.0130.01017.86
7.4.130.0150.00416.83
7.4.120.0080.01016.76
7.4.110.0070.01116.73
7.4.100.0150.01116.89
7.4.90.0170.00316.65
7.4.80.0120.00919.39
7.4.70.0100.00716.50
7.4.60.0130.00316.62
7.4.50.0030.00516.70
7.4.40.0070.01016.70
7.4.30.0120.00916.95
7.4.00.0060.00915.27
7.3.330.0020.00213.46
7.3.320.0000.00513.32
7.3.310.0070.00016.43
7.3.300.0070.00016.30
7.3.290.0100.00716.44
7.3.280.0080.01116.42
7.3.270.0080.00917.40
7.3.260.0090.00916.79
7.3.240.0110.00816.69
7.3.230.0170.00016.62
7.3.210.0100.00716.61
7.3.200.0100.00716.56
7.3.190.0140.00416.73
7.3.180.0060.00916.68
7.3.170.0130.00316.87
7.3.160.0120.00916.50
7.2.330.0030.01416.68
7.2.320.0090.01216.95
7.2.310.0090.00917.06
7.2.300.0100.01416.73
7.2.290.0030.01516.73
7.2.60.0090.00616.93
7.2.00.0030.00919.84
7.1.200.0070.00716.12
7.1.100.0070.01018.09
7.1.70.0000.00717.40
7.1.60.0070.01719.12
7.1.50.0030.01417.21
7.1.00.0030.07722.42
7.0.200.0080.00416.67
7.0.60.0030.04020.01
7.0.50.0030.04317.88
7.0.40.0100.03720.04
7.0.30.0570.05320.02
7.0.20.0230.05320.17
7.0.10.0030.04020.12
7.0.00.0100.04020.12
5.6.280.0000.07321.06
5.6.210.0100.07020.69
5.6.200.0070.07718.11
5.6.190.0070.04020.40
5.6.180.0270.03720.36
5.6.170.0330.08320.46
5.6.160.0170.06020.71
5.6.150.0070.08018.13
5.6.140.0130.06318.16
5.6.130.0170.07318.22
5.6.120.0030.07721.01
5.6.110.0030.06021.04
5.6.100.0100.08021.00
5.6.90.0130.07721.11
5.6.80.0070.03720.35
5.6.70.3400.03720.27
5.5.350.0030.07320.39
5.5.340.0000.04317.98
5.5.330.0200.07020.23
5.5.320.0230.04320.28
5.5.310.0230.04320.30
5.5.300.0070.08017.95
5.5.290.0130.03317.88
5.5.280.0070.08320.84
5.5.270.0100.08720.97
5.5.260.0070.07320.86
5.5.250.0200.06720.77
5.5.240.0100.06320.15
5.4.450.0570.05719.14
5.4.440.0600.05019.45
5.4.430.0630.06019.63
5.4.420.0630.05719.13
5.4.410.0670.05019.38
5.4.400.0770.04319.14
5.4.390.0600.05019.26
5.4.380.0700.05319.09
5.4.370.0600.06019.09
5.4.360.0570.05318.81
5.4.350.0530.05718.78
5.4.340.0570.05018.95
5.4.320.0700.05319.25
5.4.310.0700.04719.29
5.4.300.0670.05018.77
5.4.290.0630.05319.23
5.4.280.0730.05019.11
5.4.270.0630.05319.08
5.4.260.0700.04719.11
5.4.250.0570.06019.29
5.4.240.0630.05318.77
5.4.230.0630.05318.99
5.4.220.0730.04718.80
5.4.210.0630.05318.80
5.4.200.0730.05019.16
5.4.190.0730.05319.16
5.4.180.0500.06018.98
5.4.170.0730.06319.15
5.4.160.0500.05718.94
5.4.150.0570.05719.27
5.4.140.0500.05716.50
5.4.130.0830.04016.51
5.4.120.0670.05316.38
5.4.110.0630.04316.27
5.4.100.0530.05016.59
5.4.90.0700.06016.54
5.4.80.0730.04316.59
5.4.70.0270.06316.50
5.4.60.0230.04016.34
5.4.50.0030.07016.32
5.4.40.0100.04716.18
5.4.30.0100.04316.20
5.4.20.0000.05316.39

preferences:
62.41 ms | 401 KiB | 5 Q