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('10 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.0120.00618.43
8.3.50.0140.00621.19
8.3.40.0130.00418.86
8.3.30.0070.00718.83
8.3.20.0080.00020.29
8.3.10.0080.00023.54
8.3.00.0080.00019.54
8.2.180.0120.00616.75
8.2.170.0080.00822.96
8.2.160.0110.00420.47
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0090.00626.16
8.2.120.0090.00017.75
8.2.110.0060.00319.39
8.2.100.0100.00417.89
8.2.90.0050.00319.30
8.2.80.0040.00417.97
8.2.70.0030.00717.88
8.2.60.0030.00618.05
8.2.50.0030.00518.07
8.2.40.0000.00919.41
8.2.30.0100.00018.09
8.2.20.0060.00317.83
8.2.10.0050.00318.21
8.2.00.0040.00418.19
8.1.280.0090.00625.92
8.1.270.0070.00720.42
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.01022.19
8.1.230.0080.00419.14
8.1.220.0080.00017.91
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0030.00517.50
8.1.180.0050.00318.10
8.1.170.0040.00418.79
8.1.160.0040.00422.20
8.1.150.0030.00519.04
8.1.140.0050.00317.68
8.1.130.0030.00317.91
8.1.120.0040.00417.62
8.1.110.0040.00417.63
8.1.100.0000.00717.68
8.1.90.0040.00417.78
8.1.80.0000.00717.71
8.1.70.0080.00017.75
8.1.60.0030.00517.71
8.1.50.0030.00617.77
8.1.40.0040.00417.75
8.1.30.0090.00017.83
8.1.20.0080.00017.69
8.1.10.0000.00817.74
8.1.00.0030.00617.84
8.0.300.0000.00918.90
8.0.290.0040.00416.88
8.0.280.0030.00318.52
8.0.270.0030.00317.41
8.0.260.0030.00317.32
8.0.250.0000.00717.23
8.0.240.0100.00017.31
8.0.230.0030.00317.12
8.0.220.0000.00717.22
8.0.210.0000.00817.07
8.0.200.0000.00617.23
8.0.190.0100.00017.12
8.0.180.0000.00717.22
8.0.170.0040.00417.08
8.0.160.0040.00417.11
8.0.150.0000.00817.01
8.0.140.0000.00717.17
8.0.130.0050.00013.52
8.0.120.0040.00416.99
8.0.110.0000.00817.08
8.0.100.0040.00417.22
8.0.90.0020.00517.08
8.0.80.0090.01217.09
8.0.70.0000.00717.15
8.0.60.0040.00417.04
8.0.50.0000.00817.21
8.0.30.0130.00617.37
8.0.20.0110.00717.40
8.0.10.0080.00017.17
8.0.00.0100.00717.08
7.4.330.0000.00615.33
7.4.320.0000.00616.72
7.4.300.0040.00416.71
7.4.290.0030.00616.81
7.4.280.0080.00016.81
7.4.270.0080.00016.82
7.4.260.0030.00516.84
7.4.250.0020.00516.66
7.4.240.0000.00716.69
7.4.230.0080.00016.70
7.4.220.0090.00616.74
7.4.210.0050.01016.71
7.4.200.0070.00016.64
7.4.160.0100.00716.95
7.4.150.0130.00517.40
7.4.140.0120.00817.86
7.4.130.0110.00616.64
7.4.120.0130.00616.65
7.4.110.0120.00616.75
7.4.100.0080.00816.63
7.4.90.0090.00916.65
7.4.80.0160.00419.39
7.4.70.0090.00916.89
7.4.60.0130.00316.82
7.4.50.0050.00316.87
7.4.40.0070.01016.89
7.4.30.0120.01016.79
7.4.00.0060.00915.04
7.3.330.0000.00613.26
7.3.320.0060.00013.32
7.3.310.0030.00316.34
7.3.300.0030.00316.41
7.3.290.0070.00716.49
7.3.280.0080.01116.53
7.3.270.0110.00717.40
7.3.260.0070.01116.65
7.3.250.0080.01216.66
7.3.240.0000.01716.76
7.3.230.0090.00916.50
7.3.210.0090.00916.69
7.3.200.0050.01016.78
7.3.190.0090.00916.85
7.3.180.0060.00916.54
7.3.170.0030.01316.49
7.3.160.0120.00616.58
7.3.10.0030.01217.11
7.3.00.0030.01016.67
7.2.330.0150.00317.01
7.2.320.0130.01016.74
7.2.310.0140.00317.00
7.2.300.0030.01317.04
7.2.290.0050.01116.84
7.2.130.0070.00716.98
7.2.120.0030.01317.16
7.2.110.0040.01417.18
7.2.100.0070.01017.20
7.2.90.0040.00716.89
7.2.80.0130.00617.02
7.2.70.0000.01417.12
7.2.60.0050.00817.23
7.2.50.0070.00617.31
7.2.40.0000.01517.24
7.2.30.0040.01117.12
7.2.20.0000.01217.20
7.2.10.0140.00017.29
7.2.00.0050.01018.47
7.1.250.0130.00316.18
7.1.200.0000.01116.03
7.1.100.0060.01018.41
7.1.70.0030.00617.37
7.1.60.0070.01819.12
7.1.50.0030.01017.22
7.1.00.0030.07722.40
7.0.200.0100.00316.98
7.0.60.0000.06320.10
7.0.50.0070.03717.85
7.0.40.0100.04319.90
7.0.30.0330.05020.00
7.0.20.0200.09320.12
7.0.10.0070.07720.08
7.0.00.0100.06720.12
5.6.280.0000.07321.07
5.6.210.0100.07720.69
5.6.200.0070.08718.19
5.6.190.0070.04320.58
5.6.180.0170.04020.73
5.6.170.0270.07720.44
5.6.160.0030.04020.63
5.6.150.0130.07318.08
5.6.140.0130.07318.12
5.6.130.0070.07018.21
5.6.120.0130.07321.14
5.6.110.0230.05720.94
5.6.100.0030.07321.02
5.6.90.0070.08320.88
5.6.80.0130.07320.29
5.6.70.0200.07020.53
5.5.350.0330.07320.34
5.5.340.0100.06717.92
5.5.330.0030.08320.36
5.5.320.0270.07020.13
5.5.310.0300.05020.30
5.5.300.0070.08017.95
5.5.290.0030.06718.02
5.5.280.0170.07720.84
5.5.270.0130.07020.75
5.5.260.0100.08320.84
5.5.250.0000.04320.61
5.5.240.0100.04320.35
5.4.450.0570.06019.46
5.4.440.0570.05719.13
5.4.430.0600.05019.62
5.4.420.0630.04719.47
5.4.410.0670.05019.31
5.4.400.0570.05318.80
5.4.390.0700.04319.17
5.4.380.0530.05319.15
5.4.370.0570.05319.13
5.4.360.0600.05018.79
5.4.350.0500.06319.00
5.4.340.0630.05019.26
5.4.320.0570.05319.32
5.4.310.0670.03719.30
5.4.300.0600.04318.95
5.4.290.0430.06019.19
5.4.280.0500.05719.19
5.4.270.0470.06018.91
5.4.260.0530.05318.95
5.4.250.0670.04319.27
5.4.240.0570.04719.30
5.4.230.0700.03718.99
5.4.220.0470.06319.22
5.4.210.0630.04319.18
5.4.200.0500.05719.13
5.4.190.0600.05318.99
5.4.180.0570.05019.30
5.4.170.0500.05718.73
5.4.160.0500.05319.21
5.4.150.0570.05318.98
5.4.140.0730.05716.50
5.4.130.0770.04716.50
5.4.120.0730.04016.63
5.4.110.0730.06716.57
5.4.100.0770.06316.43
5.4.90.0730.04716.41
5.4.80.0730.04716.25
5.4.70.0230.06316.51
5.4.60.0370.06716.49
5.4.50.0030.07316.16
5.4.40.0100.06016.31
5.4.30.0100.05316.36
5.4.20.0070.04016.43

preferences:
56.27 ms | 401 KiB | 5 Q