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) { echo $dt->format("Y-m") . PHP_EOL; echo $start, "\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.0150.00318.80
8.3.50.0090.00616.84
8.3.40.0110.00419.09
8.3.30.0140.00019.10
8.3.20.0000.00720.18
8.3.10.0050.00223.37
8.3.00.0040.00419.49
8.2.180.0140.00317.13
8.2.170.0070.00722.96
8.2.160.0170.00320.46
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00617.88
8.2.110.0030.00722.20
8.2.100.0060.00617.60
8.2.90.0080.00019.25
8.2.80.0050.00318.00
8.2.70.0060.00317.88
8.2.60.0050.00318.14
8.2.50.0030.00518.07
8.2.40.0040.00719.44
8.2.30.0040.00419.84
8.2.20.0000.00718.02
8.2.10.0040.00418.18
8.2.00.0030.00618.19
8.1.280.0140.00425.92
8.1.270.0100.00720.20
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.66
8.1.230.0040.00817.73
8.1.220.0050.00317.91
8.1.210.0040.00418.77
8.1.200.0000.01017.73
8.1.190.0000.00817.48
8.1.180.0030.00618.10
8.1.170.0040.00418.74
8.1.160.0000.00722.09
8.1.150.0020.00519.14
8.1.140.0030.00517.73
8.1.130.0040.00417.92
8.1.120.0040.00417.65
8.1.110.0040.00417.78
8.1.100.0000.01017.69
8.1.90.0000.00717.60
8.1.80.0000.00817.77
8.1.70.0040.00417.73
8.1.60.0000.00817.83
8.1.50.0050.00517.73
8.1.40.0040.00417.77
8.1.30.0000.00917.77
8.1.20.0070.00017.85
8.1.10.0040.00417.85
8.1.00.0040.00417.77
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0050.00318.57
8.0.270.0030.00517.20
8.0.260.0030.00317.29
8.0.250.0040.00417.29
8.0.240.0080.00017.30
8.0.230.0000.00717.31
8.0.220.0030.00517.16
8.0.210.0070.00017.28
8.0.200.0000.00617.22
8.0.190.0080.00017.20
8.0.180.0030.00517.18
8.0.170.0000.00817.11
8.0.160.0070.00017.33
8.0.150.0080.00017.07
8.0.140.0070.00017.21
8.0.130.0020.00513.53
8.0.120.0000.00817.26
8.0.110.0000.00817.20
8.0.100.0040.00417.20
8.0.90.0040.00417.31
8.0.80.0140.00717.15
8.0.70.0040.00417.24
8.0.60.0070.00017.25
8.0.50.0040.00417.13
8.0.30.0060.00917.28
8.0.20.0090.01417.61
8.0.10.0040.00417.23
8.0.00.0100.01317.09
7.4.330.0000.00515.26
7.4.320.0030.00316.73
7.4.300.0060.00016.78
7.4.290.0030.00316.84
7.4.280.0040.00416.63
7.4.270.0000.00716.82
7.4.260.0030.00316.72
7.4.250.0040.00416.80
7.4.240.0040.00416.78
7.4.230.0000.00716.71
7.4.220.0090.00916.87
7.4.210.0110.00516.87
7.4.200.0070.00016.81
7.4.160.0100.01016.56
7.4.150.0040.01517.40
7.4.140.0100.01017.86
7.4.130.0070.01316.72
7.4.120.0120.00716.78
7.4.110.0030.01516.79
7.4.100.0030.01316.68
7.4.90.0140.00616.74
7.4.80.0140.00619.39
7.4.70.0100.00716.84
7.4.60.0140.00416.94
7.4.50.0040.00416.60
7.4.40.0030.01316.44
7.4.30.0110.01116.70
7.4.00.0050.00815.42
7.3.330.0000.00713.48
7.3.320.0000.00513.34
7.3.310.0030.00416.64
7.3.300.0040.00416.54
7.3.290.0090.00716.56
7.3.280.0100.00816.56
7.3.270.0030.01517.40
7.3.260.0160.00016.71
7.3.250.0080.01016.64
7.3.240.0100.00616.73
7.3.230.0090.00916.58
7.3.210.0030.01316.72
7.3.200.0060.01316.88
7.3.190.0100.00716.75
7.3.180.0100.00616.73
7.3.170.0060.01016.74
7.3.160.0130.00316.90
7.2.330.0030.01416.89
7.2.320.0070.01616.84
7.2.310.0000.01616.83
7.2.300.0070.01016.89
7.2.290.0100.00716.85
7.2.60.0000.01417.16
7.2.00.0000.00919.70
7.1.200.0060.00615.92
7.1.100.0000.01218.04
7.1.70.0110.00817.39
7.1.60.0150.01119.17
7.1.50.0200.01635.05
7.1.00.0000.08022.54
7.0.200.0030.00516.97
7.0.60.0030.08320.02
7.0.50.0000.05017.89
7.0.40.0100.08720.23
7.0.30.0170.04320.09
7.0.20.0370.07720.19
7.0.10.0170.07720.02
7.0.00.0070.03720.32
5.6.280.0000.03320.90
5.6.210.0070.03720.62
5.6.200.0070.06718.21
5.6.190.0130.08020.64
5.6.180.4030.04320.64
5.6.170.0200.03720.71
5.6.160.0070.04020.40
5.6.150.0000.04318.18
5.6.140.0030.06318.12
5.6.130.0100.07018.15
5.6.120.0070.05321.13
5.6.110.0070.09021.00
5.6.100.0030.08020.98
5.6.90.0070.05720.96
5.6.80.0070.07020.41
5.6.70.3530.03320.41
5.5.350.0070.06320.34
5.5.340.0070.05717.98
5.5.330.0030.07020.57
5.5.320.0430.06320.26
5.5.310.0300.07320.12
5.5.300.0000.06017.92
5.5.290.0070.05717.91
5.5.280.0170.04020.76
5.5.270.0070.08020.93
5.5.260.0100.07320.75
5.5.250.0130.06320.54
5.5.240.0270.08020.04
5.4.450.0700.06719.51
5.4.440.0770.06719.41
5.4.430.1000.06019.39
5.4.420.0900.05719.41
5.4.410.0970.06319.26
5.4.400.0670.05719.24
5.4.390.0700.05318.80
5.4.380.0770.06319.07
5.4.370.0770.05719.21
5.4.360.0800.05318.91
5.4.350.0700.05019.07
5.4.340.0730.05018.80
5.4.320.0870.05719.16
5.4.310.0770.06019.30
5.4.300.0670.05319.18
5.4.290.0970.06718.77
5.4.280.0670.05319.21
5.4.270.0670.05319.06
5.4.260.0800.03719.24
5.4.250.0700.05018.90
5.4.240.0700.05019.24
5.4.230.0730.04319.10
5.4.220.0670.06019.13
5.4.210.0770.04719.24
5.4.200.0730.04319.20
5.4.190.0930.05719.08
5.4.180.0830.05319.20
5.4.170.0700.05318.98
5.4.160.0600.05719.07
5.4.150.0730.06018.79
5.4.140.0730.04716.50
5.4.130.0770.06316.55
5.4.120.0730.04316.30
5.4.110.0700.05316.50
5.4.100.0630.05316.47
5.4.90.0670.05016.41
5.4.80.0700.04716.55
5.4.70.0270.03716.10
5.4.60.0270.03716.42
5.4.50.0030.03316.04
5.4.40.0030.05016.36
5.4.30.0000.03716.38
5.4.20.0200.04016.16

preferences:
57.78 ms | 400 KiB | 5 Q