3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date('Y-m-d'); $start = $today->modify('first day of this month'); $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.0140.00718.68
8.3.50.0080.01621.90
8.3.40.0120.00919.11
8.3.30.0070.00719.21
8.3.20.0080.00020.34
8.3.10.0000.00820.86
8.3.00.0070.00319.40
8.2.180.0040.01416.63
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00422.30
8.2.110.0110.00022.11
8.2.100.0080.00417.72
8.2.90.0080.00019.27
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0040.00418.28
8.2.30.0040.00419.54
8.2.20.0050.00217.79
8.2.10.0050.00318.14
8.2.00.0000.00817.68
8.1.280.0080.01225.92
8.1.270.0030.00623.70
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00923.98
8.1.230.0040.00719.21
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0020.00521.86
8.1.150.0030.00618.93
8.1.140.0000.00717.43
8.1.130.0070.00017.98
8.1.120.0000.00717.53
8.1.110.0000.00717.62
8.1.100.0040.00417.57
8.1.90.0000.00917.59
8.1.80.0030.00317.49
8.1.70.0000.00817.43
8.1.60.0040.00417.63
8.1.50.0030.00617.50
8.1.40.0000.00717.62
8.1.30.0000.00817.62
8.1.20.0000.00717.63
8.1.10.0040.00417.67
8.1.00.0020.00517.71
8.0.300.0000.00718.77
8.0.290.0030.00616.88
8.0.280.0030.00318.40
8.0.270.0070.00017.30
8.0.260.0000.00817.24
8.0.250.0030.00317.01
8.0.240.0040.00417.16
8.0.230.0000.00717.10
8.0.220.0030.00317.05
8.0.210.0000.00816.98
8.0.200.0060.00016.94
8.0.190.0070.00417.08
8.0.180.0040.00417.00
8.0.170.0040.00417.00
8.0.160.0070.00016.96
8.0.150.0070.00016.98
8.0.140.0000.00716.95
8.0.130.0050.00013.34
8.0.120.0000.00816.87
8.0.110.0050.00316.82
8.0.100.0000.00716.94
8.0.90.0050.00216.82
8.0.80.0030.01317.00
8.0.70.0040.00416.96
8.0.60.0000.00717.04
8.0.50.0040.00416.86
8.0.30.0090.01117.20
8.0.20.0110.01017.40
8.0.10.0000.00717.24
8.0.00.0140.00616.79
7.4.330.0030.00315.00
7.4.320.0030.00316.53
7.4.300.0030.00316.61
7.4.290.0030.00316.75
7.4.280.0040.00416.55
7.4.270.0070.00016.62
7.4.260.0000.00716.69
7.4.250.0000.00816.57
7.4.240.0000.00716.52
7.4.230.0030.00316.81
7.4.220.0090.00916.65
7.4.210.0070.00716.64
7.4.200.0030.00316.71
7.4.160.0130.00316.75
7.4.150.0150.00617.40
7.4.140.0070.01017.86
7.4.130.0130.00416.57
7.4.120.0120.00916.76
7.4.110.0100.00716.69
7.4.100.0200.00316.68
7.4.90.0040.01416.64
7.4.80.0130.01319.39
7.4.70.0040.01416.67
7.4.60.0030.01216.73
7.4.50.0030.00316.36
7.4.40.0130.00316.52
7.4.30.0130.00316.60
7.4.00.0000.01515.16
7.3.330.0030.00313.27
7.3.320.0050.00013.12
7.3.310.0050.00216.46
7.3.300.0000.00716.31
7.3.290.0090.00916.38
7.3.280.0090.01016.37
7.3.270.0060.01017.40
7.3.260.0130.00316.58
7.3.250.0100.00716.61
7.3.240.0060.01016.46
7.3.230.0070.01016.49
7.3.210.0300.03416.54
7.3.200.0180.00419.39
7.3.190.0070.01416.56
7.3.180.0080.00816.41
7.3.170.0100.00616.54
7.3.160.0090.00916.49
7.2.330.0120.00616.73
7.2.320.0030.01416.75
7.2.310.0080.01516.48
7.2.300.0000.01616.71
7.2.290.0060.01516.81
7.2.60.0000.01416.83
7.2.00.0080.00419.46
7.1.200.0100.00315.51
7.1.100.0060.00618.27
7.1.70.0000.00717.33
7.1.60.0070.01119.61
7.1.50.0060.00916.77
7.1.00.0070.07322.54
7.0.200.0220.00714.83
7.0.140.0100.06721.96
7.0.80.0530.07020.02
7.0.70.0600.08719.89
7.0.60.0530.04319.86
7.0.50.0530.04020.26
7.0.40.0130.08020.10
7.0.30.0170.07320.05
7.0.20.0230.05720.11
7.0.10.0100.08020.14
7.0.00.0070.08320.17
5.6.280.0030.07321.07
5.6.230.0100.05020.63
5.6.220.0070.08720.66
5.6.210.0100.08020.60
5.6.200.0070.04721.02
5.6.190.0130.08021.17
5.6.180.0200.07321.02
5.6.170.0130.07721.07
5.6.160.0070.08720.96
5.6.150.0030.08021.04
5.6.140.0070.04721.02
5.6.130.0100.07021.08
5.6.120.0100.08021.05
5.6.110.0070.07721.16
5.6.100.0070.06021.01
5.6.90.0070.07721.05
5.6.80.0100.03320.39
5.6.70.0070.07720.41
5.6.60.0030.03720.54
5.6.50.0070.03720.48
5.6.40.0000.04320.33
5.6.30.0130.04720.46
5.6.20.0030.04320.52
5.6.10.0030.03320.43
5.6.00.0070.04020.43
5.5.370.0030.04320.42
5.5.360.0000.08320.35
5.5.350.0130.07720.46
5.5.340.0070.04720.79
5.5.330.0170.07020.92
5.5.320.0070.07720.82
5.5.310.0130.08020.89
5.5.300.0070.08020.88
5.5.290.0030.05320.82
5.5.280.0130.07020.79
5.5.270.0170.07320.83
5.5.260.0070.04720.81
5.5.250.0170.07020.61
5.5.240.0000.04320.15
5.5.230.0000.08320.02
5.5.220.0030.03720.25
5.5.210.0000.04020.25
5.5.200.0070.03720.14
5.5.190.0000.04720.24
5.5.180.0100.03320.08
5.5.160.0030.04020.13
5.5.150.0000.03719.98
5.5.140.0100.06020.22
5.5.130.0070.05720.25
5.5.120.0070.05720.20
5.5.110.0030.04720.17
5.5.100.0100.03320.08
5.5.90.0000.04020.00
5.5.80.0000.04020.17
5.5.70.0070.07020.10
5.5.60.0030.06019.99
5.5.50.0000.04320.06
5.5.40.0030.03719.92
5.5.30.0100.03320.02
5.5.20.0000.03720.10
5.5.10.0070.04320.05
5.5.00.0030.04020.12
5.4.450.0130.03319.48
5.4.440.0170.03319.30
5.4.430.0070.04319.26
5.4.420.0030.04719.45
5.4.410.0030.04319.30
5.4.400.0030.08018.82
5.4.390.0030.07719.10
5.4.380.0070.05719.03
5.4.370.0100.05018.95
5.4.360.0000.04018.90
5.4.350.0000.06719.06
5.4.340.0070.03319.03
5.4.320.0000.03719.03
5.4.310.0000.04719.12
5.4.300.0030.07019.10
5.4.290.0000.04318.89
5.4.280.0030.04018.91
5.4.270.0030.03318.98
5.4.260.0100.03718.89
5.4.250.0030.06019.14
5.4.240.0070.03719.09
5.4.230.0030.03018.89
5.4.220.0030.06019.22
5.4.210.0070.03319.09
5.4.200.0000.04019.02
5.4.190.0030.03318.80
5.4.180.0030.04319.07
5.4.170.0000.05018.91
5.4.160.0030.03319.08
5.4.150.0170.03719.07
5.4.140.0030.03716.35
5.4.130.0030.03016.32
5.4.120.0100.03016.38
5.4.110.0070.03016.36
5.4.100.0000.03716.31
5.4.90.0030.03716.43
5.4.80.0030.03716.35
5.4.70.0070.03716.25
5.4.60.0030.03016.33
5.4.50.0000.03716.40
5.4.40.0100.02716.33
5.4.30.0030.04016.28
5.4.20.0070.03016.43
5.4.10.0070.03716.39
5.4.00.0070.02715.72
5.3.290.0030.03314.52
5.3.280.0170.04014.55
5.3.270.0030.03714.46
5.3.260.0000.05314.46
5.3.250.0070.04714.46
5.3.240.0130.04014.47
5.3.230.0000.05714.41
5.3.220.0100.03014.56
5.3.210.0000.05014.43
5.3.200.0000.04014.55
5.3.190.0000.04014.56
5.3.180.0070.04714.54
5.3.170.0070.03314.41
5.3.160.0000.06014.53
5.3.150.0030.03714.56
5.3.140.0000.04014.49
5.3.130.0000.04014.53
5.3.120.0100.02714.50
5.3.110.0000.04314.55
5.3.100.0000.07013.97
5.3.90.0070.04713.97
5.3.80.0030.07713.99
5.3.70.0030.08014.00
5.3.60.0100.05713.96
5.3.50.0030.06313.89
5.3.40.0070.07313.88
5.3.30.0030.06313.77
5.3.20.0030.07713.46
5.3.10.0100.06013.63
5.3.00.0030.06013.62
5.2.170.0100.06310.96
5.2.160.0070.04311.05
5.2.150.0100.06011.00
5.2.140.0030.03710.93
5.2.130.0070.06311.15
5.2.120.0070.05711.13
5.2.110.0100.03311.05
5.2.100.0070.06310.91
5.2.90.0000.06311.15
5.2.80.0070.06311.09
5.2.70.0100.06011.10
5.2.60.0100.03710.96
5.2.50.0000.06310.85
5.2.40.0100.05710.96
5.2.30.0100.05310.83
5.2.20.0100.06011.00
5.2.10.0070.05710.89
5.2.00.0100.05310.76
5.1.60.0030.0579.98
5.1.50.0000.05310.04
5.1.40.0030.04710.00
5.1.30.0070.05310.36
5.1.20.0000.06310.39
5.1.10.0000.05010.10
5.1.00.0030.06010.05
5.0.50.0070.0438.38
5.0.40.0030.0478.42
5.0.30.0000.0378.27
5.0.20.0030.0208.04
5.0.10.0030.0308.00
5.0.00.0030.0608.27
4.4.90.0030.0337.39
4.4.80.0000.0377.39
4.4.70.0000.0377.39
4.4.60.0000.0337.39
4.4.50.0000.0337.39
4.4.40.0030.0537.39
4.4.30.0030.0337.39
4.4.20.0030.0337.39
4.4.10.0000.0337.39
4.4.00.0070.0477.39
4.3.110.0070.0207.39
4.3.100.0030.0207.39
4.3.90.0000.0337.39
4.3.80.0030.0577.39
4.3.70.0000.0377.39
4.3.60.0000.0277.39
4.3.50.0030.0377.39
4.3.40.0000.0537.39
4.3.30.0000.0377.39
4.3.20.0000.0337.39
4.3.10.0000.0377.39
4.3.00.0000.0377.39

preferences:
40.45 ms | 401 KiB | 5 Q