3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2015-02-01'); $start->modify('first day of this month'); $end = new DateTime('2015-05-01'); $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.0030.01416.75
8.3.50.0130.00523.00
8.3.40.0120.00318.91
8.3.30.0100.00719.11
8.3.20.0000.00720.21
8.3.10.0040.00421.51
8.3.00.0070.00319.02
8.2.180.0100.01418.38
8.2.170.0040.01122.96
8.2.160.0030.01020.57
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0120.00626.16
8.2.120.0090.00020.88
8.2.110.0030.00622.15
8.2.100.0070.00419.57
8.2.90.0060.00319.20
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0070.00318.28
8.2.30.0030.00618.27
8.2.20.0000.00818.02
8.2.10.0040.00418.10
8.2.00.0040.00418.00
8.1.280.0100.00625.92
8.1.270.0040.00422.31
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0110.00019.36
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.50
8.1.190.0000.00817.47
8.1.180.0080.00019.39
8.1.170.0030.00718.77
8.1.160.0070.00022.09
8.1.150.0000.00719.07
8.1.140.0070.00017.64
8.1.130.0030.00317.88
8.1.120.0070.00017.80
8.1.110.0070.00417.77
8.1.100.0040.00417.54
8.1.90.0080.00017.69
8.1.80.0070.00017.62
8.1.70.0000.00817.68
8.1.60.0030.00617.67
8.1.50.0040.00417.71
8.1.40.0040.00417.72
8.1.30.0050.00317.77
8.1.20.0000.00717.85
8.1.10.0080.00017.66
8.1.00.0040.00417.79
8.0.300.0000.00718.77
8.0.290.0000.00717.30
8.0.280.0000.00818.52
8.0.270.0030.00517.31
8.0.260.0060.00017.42
8.0.250.0030.00317.09
8.0.240.0000.00717.11
8.0.230.0030.00517.11
8.0.220.0000.00717.12
8.0.210.0000.00717.13
8.0.200.0040.00417.20
8.0.190.0060.00317.11
8.0.180.0000.00817.22
8.0.170.0000.00817.19
8.0.160.0070.00017.12
8.0.150.0000.00716.98
8.0.140.0040.00417.12
8.0.130.0060.00013.45
8.0.120.0030.00617.04
8.0.110.0000.00717.16
8.0.100.0080.00016.98
8.0.90.0000.00717.15
8.0.80.0070.01617.13
8.0.70.0000.00817.04
8.0.60.0000.00817.23
8.0.50.0070.00017.22
8.0.30.0100.00817.36
8.0.20.0180.00517.45
8.0.10.0000.00717.24
8.0.00.0080.00916.93
7.4.330.0070.00015.27
7.4.320.0030.00516.82
7.4.300.0000.00716.80
7.4.290.0030.00316.82
7.4.280.0070.00016.63
7.4.270.0000.00816.64
7.4.260.0030.00316.77
7.4.250.0040.00416.59
7.4.240.0050.00216.80
7.4.230.0040.00416.89
7.4.220.0060.01416.86
7.4.210.0100.00616.90
7.4.200.0070.00016.81
7.4.160.0100.00716.77
7.4.150.0090.00917.40
7.4.140.0140.00417.86
7.4.130.0110.00716.70
7.4.120.0070.01116.73
7.4.110.0120.00616.81
7.4.100.0040.01516.72
7.4.90.0030.01616.71
7.4.80.0100.00719.39
7.4.70.0070.01116.73
7.4.60.0070.01016.68
7.4.50.0000.00916.57
7.4.40.0100.01016.62
7.4.30.0170.00016.69
7.4.00.0050.00815.13
7.3.330.0030.00313.30
7.3.320.0000.00513.40
7.3.310.0040.00416.40
7.3.300.0000.00716.51
7.3.290.0080.00616.47
7.3.280.0070.01016.48
7.3.270.0070.01417.40
7.3.260.0100.01016.69
7.3.250.0120.00616.65
7.3.240.0120.00616.94
7.3.230.0220.00016.54
7.3.210.0090.00916.92
7.3.200.0060.01519.39
7.3.190.0040.01216.81
7.3.180.0060.01116.54
7.3.170.0040.01216.51
7.3.160.0160.00016.52
7.2.330.0150.00316.78
7.2.320.0070.01617.02
7.2.310.0060.01116.77
7.2.300.0080.01216.97
7.2.290.0000.02016.78
7.2.60.0030.01017.27
7.2.00.0070.00719.72
7.1.200.0240.00315.60
7.1.100.0040.00718.33
7.1.70.0070.00317.10
7.1.60.0120.01219.57
7.1.50.0000.01316.91
7.1.00.0000.08022.35
7.0.200.0040.00417.12
7.0.140.0000.05022.07
7.0.60.0030.05019.77
7.0.50.0100.08017.89
7.0.40.0000.05719.90
7.0.30.0200.04320.16
7.0.20.0230.06720.01
7.0.10.0200.07319.99
7.0.00.0170.04720.14
5.6.280.0030.07320.78
5.6.210.0130.06720.75
5.6.200.0100.03318.22
5.6.190.0270.06020.35
5.6.180.0470.07020.44
5.6.170.0300.08320.50
5.6.160.0000.05020.44
5.6.150.0070.04718.22
5.6.140.0070.08018.18
5.6.130.0170.07018.17
5.6.120.0130.08021.14
5.6.110.0130.08020.98
5.6.100.0200.07321.08
5.6.90.0170.05720.99
5.6.80.0030.08320.36
5.5.350.0170.08320.52
5.5.340.0070.04017.98
5.5.330.0130.08020.07
5.5.320.0330.07320.20
5.5.310.0330.05020.41
5.5.300.0100.07717.97
5.5.290.0030.04017.92
5.5.280.0030.06320.73
5.5.270.0000.04320.63
5.5.260.0130.08020.64
5.5.250.0170.07020.66
5.5.240.0070.04320.15
5.4.450.0600.06319.55
5.4.440.0730.05719.44
5.4.430.0170.05019.46
5.4.420.0070.06019.46
5.4.410.0000.07018.98
5.4.400.0200.04018.79
5.4.390.0070.05318.61
5.4.380.0130.05018.80
5.4.370.0230.05018.45
5.4.360.0200.06718.70
5.4.350.0230.05318.68
5.4.340.0270.05018.57
5.4.320.0130.06318.46
5.4.310.0230.05318.56
5.4.300.0170.06018.47
5.4.290.0370.04318.60
5.4.280.0070.06318.68
5.4.270.0170.06018.71
5.4.260.0230.05318.71
5.4.250.0200.06318.62
5.4.240.0230.06018.51
5.4.230.0100.06018.61
5.4.220.0270.05718.63
5.4.210.0170.05718.70
5.4.200.0230.04316.66
5.4.190.0200.05318.76
5.4.180.0270.04318.71
5.4.170.0200.05318.48
5.4.160.0200.05018.66
5.4.150.0270.04318.72
5.4.140.0230.04716.23
5.4.130.0230.05316.22
5.4.120.0170.05016.20
5.4.110.0300.04316.05
5.4.100.0300.04016.07
5.4.90.0200.05016.07
5.4.80.0270.04716.15
5.4.70.0200.05016.27
5.4.60.0300.03716.38
5.4.50.0230.04716.22
5.4.40.0200.04716.02
5.4.30.0170.05016.02
5.4.20.0200.05016.19
5.4.10.0170.05016.10
5.4.00.0170.05715.63
5.3.290.0200.05314.63
5.3.280.0230.05714.69
5.3.270.0300.05314.59
5.3.260.0200.06314.52
5.3.250.0200.05014.52
5.3.240.0170.05314.59
5.3.230.0130.05314.64
5.3.220.0230.04714.62
5.3.210.0200.05714.57
5.3.200.0130.05314.55
5.3.190.0170.05314.60
5.3.180.0170.05014.67
5.3.170.0270.04014.50
5.3.160.0200.05314.57
5.3.150.0130.05714.66
5.3.140.0130.05314.61
5.3.130.0170.05314.45
5.3.120.0170.05314.65
5.3.110.0270.06014.49
5.3.100.0200.05013.97
5.3.90.0370.05714.06
5.3.80.0100.06014.05
5.3.70.0200.05014.02
5.3.60.0230.05014.03
5.3.50.0130.05313.94
5.3.40.0170.05013.88
5.3.30.0200.06714.03
5.3.20.0200.04713.63
5.3.10.0130.05313.64
5.3.00.0170.05013.63
5.2.170.0130.04311.18
5.2.160.0130.04011.11
5.2.150.0170.03711.11
5.2.140.0130.04011.15
5.2.130.0130.04011.24
5.2.120.0170.03711.11
5.2.110.0230.03311.07
5.2.100.0230.03011.27
5.2.90.0170.04011.07
5.2.80.0130.04011.07
5.2.70.0170.04311.03
5.2.60.0130.04010.98
5.2.50.0170.04011.05
5.2.40.0130.04011.04
5.2.30.0170.04711.02
5.2.20.0100.04311.10
5.2.10.0100.04310.96
5.2.00.0200.03310.73
5.1.60.0070.04010.02
5.1.50.0130.03310.12
5.1.40.0100.0379.99
5.1.30.0200.04010.36
5.1.20.0170.03310.33
5.1.10.0100.03710.12
5.1.00.0100.03710.09
5.0.50.0100.0278.57
5.0.40.0100.0278.43
5.0.30.0070.0478.34
5.0.20.0070.0408.29
5.0.10.0130.0238.30
5.0.00.0030.0478.26
4.4.90.0030.0235.91
4.4.80.0030.0235.87
4.4.70.0030.0235.85
4.4.60.0030.0235.90
4.4.50.0070.0205.88
4.4.40.0070.0335.90
4.4.30.0030.0235.88
4.4.20.0070.0205.93
4.4.10.0070.0205.91
4.4.00.0030.0405.89
4.3.110.0030.0235.83
4.3.100.0000.0275.80
4.3.90.0070.0205.80
4.3.80.0030.0375.88
4.3.70.0070.0205.79
4.3.60.0000.0235.90
4.3.50.0070.0205.88
4.3.40.0070.0335.73
4.3.30.0070.0204.85
4.3.20.0000.0274.85
4.3.10.0000.0274.85
4.3.00.0130.0206.93

preferences:
53.4 ms | 401 KiB | 5 Q