3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('20150903'); $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; }

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.00318.43
8.3.50.0090.01021.34
8.3.40.0140.00018.83
8.3.30.0040.01118.84
8.3.20.0080.00020.21
8.3.10.0000.00723.52
8.3.00.0030.00519.81
8.2.180.0070.01116.88
8.2.170.0170.00022.96
8.2.160.0130.00720.52
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00317.75
8.2.110.0030.00622.23
8.2.100.0130.00317.88
8.2.90.0000.00819.34
8.2.80.0000.00918.00
8.2.70.0050.00317.75
8.2.60.0030.00618.16
8.2.50.0030.00618.07
8.2.40.0060.00319.45
8.2.30.0000.00819.96
8.2.20.0040.00418.07
8.2.10.0000.00718.13
8.2.00.0040.00418.17
8.1.280.0060.00925.92
8.1.270.0080.00020.43
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.59
8.1.230.0070.00417.63
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.60
8.1.190.0050.00517.47
8.1.180.0040.00418.10
8.1.170.0050.00318.74
8.1.160.0030.00422.04
8.1.150.0040.00419.01
8.1.140.0030.00517.59
8.1.130.0000.00717.76
8.1.120.0090.00017.77
8.1.110.0040.00417.61
8.1.100.0000.00717.71
8.1.90.0000.00717.74
8.1.80.0050.00217.63
8.1.70.0080.00017.71
8.1.60.0050.00217.69
8.1.50.0030.00517.72
8.1.40.0050.00317.75
8.1.30.0030.00617.76
8.1.20.0000.00817.77
8.1.10.0000.00817.84
8.1.00.0000.00717.76
8.0.300.0030.00718.77
8.0.290.0070.00017.13
8.0.280.0070.00018.66
8.0.270.0000.00717.32
8.0.260.0000.00617.45
8.0.250.0000.00717.23
8.0.240.0000.00717.16
8.0.230.0040.00417.06
8.0.220.0000.00717.14
8.0.210.0070.00017.17
8.0.200.0060.00017.26
8.0.190.0040.00417.18
8.0.180.0040.00417.21
8.0.170.0040.00417.21
8.0.160.0020.00517.18
8.0.150.0040.00416.96
8.0.140.0000.00717.10
8.0.130.0030.00613.56
8.0.120.0000.00817.03
8.0.110.0040.00417.21
8.0.100.0000.00717.13
8.0.90.0040.00417.18
8.0.80.0110.00617.12
8.0.70.0040.00417.12
8.0.60.0040.00417.16
8.0.50.0040.00417.14
8.0.30.0130.00317.17
8.0.20.0060.01217.44
8.0.10.0040.00417.33
8.0.00.0110.00916.97
7.4.330.0030.00315.21
7.4.320.0030.00316.86
7.4.300.0000.00716.57
7.4.290.0040.00416.73
7.4.280.0040.00416.72
7.4.270.0030.00316.76
7.4.260.0030.00616.74
7.4.250.0000.00716.68
7.4.240.0060.00216.79
7.4.230.0030.00316.79
7.4.220.0030.01316.91
7.4.210.0100.00616.58
7.4.200.0000.00716.81
7.4.160.0060.01016.59
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0100.00716.55
7.4.120.0110.00616.76
7.4.110.0100.01316.73
7.4.100.0030.02016.82
7.4.90.0030.01416.71
7.4.80.0060.01419.39
7.4.70.0080.00816.63
7.4.60.0070.01016.85
7.4.50.0040.00416.78
7.4.40.0130.00416.69
7.4.30.0070.01016.65
7.4.00.0090.00615.00
7.3.330.0050.00013.16
7.3.320.0000.00613.27
7.3.310.0000.00716.25
7.3.300.0030.00316.26
7.3.290.0090.00816.40
7.3.280.0070.01016.49
7.3.270.0070.01117.40
7.3.260.0090.00816.38
7.3.250.0090.00716.54
7.3.240.0050.01316.67
7.3.230.0100.00716.39
7.3.210.0070.01216.58
7.3.200.0030.01316.37
7.3.190.0090.00716.50
7.3.180.0140.00716.51
7.3.170.0140.00716.69
7.3.160.0110.00616.55
7.2.330.0070.01016.70
7.2.320.0030.01416.71
7.2.310.0070.01016.66
7.2.300.0050.01116.90
7.2.290.0070.01016.72
7.1.70.0220.00317.21
7.1.60.0070.01819.17
7.1.50.0100.01316.97
7.1.00.0070.07322.31
7.0.200.0070.00316.90
7.0.60.0070.07721.87
7.0.50.0070.06017.89
7.0.40.0130.08320.02
7.0.30.0330.05320.21
7.0.20.0300.05720.17
7.0.10.0130.08720.11
7.0.00.0100.07719.99
5.6.280.0030.03321.09
5.6.210.0070.07020.77
5.6.200.0100.03718.15
5.6.190.0100.07020.39
5.6.180.0230.07020.49
5.6.170.0170.06720.48
5.6.160.0100.07020.50
5.6.150.0130.03018.22
5.6.140.0030.08718.18
5.6.130.0070.04018.16
5.6.120.0170.07321.00
5.6.110.0000.04720.99
5.6.100.0100.07321.00
5.6.90.0030.08320.98
5.6.80.0170.06320.38
5.5.350.0270.07020.42
5.5.340.0070.03718.03
5.5.330.0030.08020.29
5.5.320.0370.04720.13
5.5.310.0270.06720.28
5.5.300.0030.03717.96
5.5.290.0100.07018.01
5.5.280.0170.07320.95
5.5.270.0030.05020.95
5.5.260.0000.09720.75
5.5.250.0130.07320.79
5.5.240.0070.07720.34
5.4.450.0000.05019.20
5.4.440.4470.04319.30
5.4.430.3530.03719.48
5.4.420.3870.04019.36
5.4.410.4500.03319.39
5.4.400.4530.04019.04
5.4.390.4600.03018.87
5.4.380.4230.03319.00
5.4.370.4300.03719.26
5.4.360.3970.03719.04
5.4.350.4100.03019.16
5.4.340.4500.03718.97
5.4.320.4530.03318.87
5.4.310.4330.03719.13
5.4.300.3830.03718.97
5.4.290.4000.03019.21
5.4.280.4500.03018.97
5.4.270.4030.03319.16
5.4.260.3530.04018.99
5.4.250.4530.04319.12
5.4.240.3770.03319.14
5.4.230.3630.03319.15
5.4.220.4170.03719.20
5.4.210.3330.03319.10
5.4.200.3670.03719.03
5.4.190.3600.04018.96
5.4.180.3300.03719.03
5.4.170.4130.03019.12
5.4.160.4600.03319.18
5.4.150.4330.03718.95
5.4.140.4630.03716.43
5.4.130.4630.03316.42
5.4.120.4400.03316.48
5.4.110.4230.03716.40
5.4.100.4670.03716.47
5.4.90.4600.03716.43
5.4.80.4630.04016.39

preferences:
61.89 ms | 401 KiB | 5 Q