3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); ini_set('display_errors', 1); date_default_timezone_set('UTC'); //to be sure that DateInterval will work as intended $fist_day_of_the_month = (new DateTime)->format('Y-m-01'); $range = new DatePeriod( new DateTime($fist_day_of_the_month), //begin new DateInterval('P1M'), //interval new DateTime($fist_day_of_the_month.' +24 month') //end ); foreach ($range as $date) { echo $date->format('Y-m-d'), 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.00918.55
8.3.50.0130.00221.99
8.3.40.0090.00618.58
8.3.30.0070.00719.09
8.3.20.0090.00320.34
8.3.10.0040.00421.92
8.3.00.0080.00022.50
8.2.180.0040.01116.63
8.2.170.0090.00622.96
8.2.160.0120.00321.02
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0120.00626.16
8.2.120.0050.00317.75
8.2.110.0060.00319.25
8.2.100.0120.00017.72
8.2.90.0030.00619.17
8.2.80.0030.00517.97
8.2.70.0070.00317.72
8.2.60.0050.00318.16
8.2.50.0080.00018.07
8.2.40.0060.00318.34
8.2.30.0040.00418.24
8.2.20.0040.00417.87
8.2.10.0040.00417.80
8.2.00.0040.00418.04
8.1.280.0180.00625.92
8.1.270.0040.00422.18
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00023.98
8.1.230.0040.00820.91
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.48
8.1.190.0040.00417.39
8.1.180.0000.00818.68
8.1.170.0040.00418.76
8.1.160.0070.00022.05
8.1.150.0040.00418.78
8.1.140.0030.00517.66
8.1.130.0040.00417.87
8.1.120.0000.00717.74
8.1.110.0000.00717.56
8.1.100.0070.00017.57
8.1.90.0040.00417.69
8.1.80.0000.00717.56
8.1.70.0000.00717.63
8.1.60.0030.00617.62
8.1.50.0050.00317.68
8.1.40.0040.00417.71
8.1.30.0000.00817.79
8.1.20.0040.00417.79
8.1.10.0000.00717.77
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0040.00418.63
8.0.270.0000.00717.31
8.0.260.0000.00716.99
8.0.250.0070.00017.05
8.0.240.0070.00017.07
8.0.230.0060.00317.08
8.0.220.0030.00317.16
8.0.210.0030.00317.02
8.0.200.0030.00317.12
8.0.190.0040.00417.04
8.0.180.0070.00017.11
8.0.170.0000.00817.10
8.0.160.0070.00017.03
8.0.150.0040.00417.02
8.0.140.0040.00417.09
8.0.130.0030.00313.47
8.0.120.0030.00617.09
8.0.110.0070.00017.11
8.0.100.0070.00016.97
8.0.90.0050.00216.96
8.0.80.0040.01116.99
8.0.70.0090.00016.93
8.0.60.0000.00816.99
8.0.50.0050.00217.07
8.0.30.0090.00917.32
8.0.20.0080.01417.40
8.0.10.0000.00817.24
8.0.00.0120.00516.98
7.4.330.0000.00615.00
7.4.320.0060.00016.76
7.4.300.0030.00516.66
7.4.290.0040.00416.75
7.4.280.0030.00316.61
7.4.270.0040.00416.76
7.4.260.0000.00816.75
7.4.250.0000.00916.72
7.4.240.0040.00416.55
7.4.230.0000.00716.75
7.4.220.0120.00616.71
7.4.210.0110.00416.69
7.4.200.0000.00716.63
7.4.190.0040.00416.88
7.4.160.0070.01116.82
7.4.150.0080.01717.40
7.4.140.0060.01317.86
7.4.130.0140.00516.59
7.4.120.0070.01016.56
7.4.110.0130.00916.41
7.4.100.0140.00416.75
7.4.90.0100.00916.62
7.4.80.0080.01119.39
7.4.70.0070.01116.75
7.4.60.0120.00616.78
7.4.50.0050.00516.60
7.4.40.0060.00922.77
7.4.30.0030.01416.69
7.4.00.0070.01014.97
7.3.330.0050.00013.34
7.3.320.0050.00013.31
7.3.310.0050.00316.63
7.3.300.0040.00416.52
7.3.290.0090.00916.50
7.3.280.0080.00916.56
7.3.270.0120.00617.40
7.3.260.0120.00616.65
7.3.250.0130.00716.67
7.3.240.0110.00616.66
7.3.230.0000.01616.42
7.3.210.0090.00916.52
7.3.200.0120.00919.39
7.3.190.0110.00716.66
7.3.180.0040.01516.37
7.3.170.0130.01316.54
7.3.160.0040.01516.60
7.3.120.0110.00414.95
7.2.330.0060.01316.84
7.2.320.0070.01016.71
7.2.310.0060.01216.88
7.2.300.0060.00916.87
7.2.290.0070.01416.97
7.2.60.0160.00017.12
7.2.00.0060.00619.55
7.1.200.0130.00315.79
7.1.100.0000.01418.46
7.1.70.0130.00017.11
7.1.60.0100.01019.82
7.1.50.0070.01416.87
7.1.00.0030.07722.33
7.0.200.0040.00416.73
7.0.140.0030.07022.18
7.0.60.0070.08719.96
7.0.50.0070.07017.84
7.0.40.0100.08720.04
7.0.30.0230.03720.30
7.0.20.0230.03320.12
7.0.10.0070.04720.12
7.0.00.0100.06020.16
5.6.280.0030.07320.90
5.6.210.0070.08720.69
5.6.200.0030.08318.13
5.6.190.0130.07020.35
5.6.180.0430.05720.45
5.6.170.0200.04720.62
5.6.160.0070.04020.63
5.6.150.0070.03718.09
5.6.140.0030.08318.15
5.6.130.0030.04718.16
5.6.120.0030.04321.05
5.6.110.0070.08320.98
5.6.100.0100.04720.97
5.6.90.0100.08020.97
5.6.80.0130.06720.41
5.5.350.0230.05020.41
5.5.340.0000.05317.91
5.5.330.0170.03020.24
5.5.320.0230.04320.27
5.5.310.0200.08320.31
5.5.300.0100.04317.96
5.5.290.0000.04318.00
5.5.280.0030.08720.64
5.5.270.0000.06320.86
5.5.260.0070.08320.75
5.5.250.0100.07720.65
5.5.240.0000.07720.18
5.4.450.0300.07019.64
5.4.440.0700.07319.62
5.4.430.0030.06319.14
5.4.420.0070.06019.15
5.4.410.0200.04718.88
5.4.400.0100.05718.69
5.4.390.0070.05318.46
5.4.380.0170.04718.69
5.4.370.0070.04318.56
5.4.360.0070.04318.45
5.4.350.0110.03611.98
5.4.340.0060.03611.97
5.4.320.0040.03812.45
5.4.310.0050.03912.45
5.4.300.0050.03712.45
5.4.290.0060.03712.45
5.4.280.0030.04012.35
5.4.270.0050.05512.35
5.4.260.0200.05718.93
5.4.250.0030.05718.66
5.4.240.0100.07318.93
5.4.230.0070.05718.70
5.4.220.0100.05718.73
5.4.210.0130.05319.02
5.4.200.0100.04718.90
5.4.190.0200.04018.83
5.4.180.0030.05318.94
5.4.170.0130.04718.92
5.4.160.0170.05718.93
5.4.150.0100.07318.71
5.4.140.0130.04316.48
5.4.130.0070.06016.45
5.4.120.0200.03316.57
5.4.110.0200.04016.56
5.4.100.0070.06716.26
5.4.90.0100.04716.26
5.4.80.0230.03016.39
5.4.70.0100.04316.27
5.4.60.0130.04016.50
5.4.50.0100.04016.34
5.4.40.0070.04716.50
5.4.30.0100.04316.40
5.4.20.0070.05016.47
5.4.10.0070.05016.39
5.4.00.0070.05015.68
5.3.290.0050.04012.80
5.3.280.0100.04714.64
5.3.270.0070.05314.30
5.3.260.0030.06314.61
5.3.250.0170.06714.46
5.3.240.0030.05714.30
5.3.230.0070.04714.61
5.3.220.0000.05314.56
5.3.210.0100.04714.68
5.3.200.0130.04014.34
5.3.190.0070.06314.58
5.3.180.0070.05014.45
5.3.170.0100.04314.58
5.3.160.0100.04314.48
5.3.150.0130.04714.42
5.3.140.0030.05014.33
5.3.130.0070.05314.47
5.3.120.0070.05314.55
5.3.110.0000.08014.57
5.3.100.0100.04714.04
5.3.90.0070.05014.04
5.3.80.0030.05014.04
5.3.70.0070.05014.03
5.3.60.0030.05313.71
5.3.50.0100.05313.96
5.3.40.0000.07713.72
5.3.30.0130.04313.61
5.3.20.0030.05013.69
5.3.10.0130.04013.80
5.3.00.0000.06313.79
5.2.170.0100.06011.24
5.2.160.0070.03711.30
5.2.150.0070.04311.06
5.2.140.0070.04710.98
5.2.130.0070.03711.12
5.2.120.0000.04711.10
5.2.110.0030.04011.03
5.2.100.0030.04711.10
5.2.90.0030.05311.03
5.2.80.0070.04011.09
5.2.70.0000.04311.10
5.2.60.0130.04710.97
5.2.50.0000.04311.03
5.2.40.0170.04011.00
5.2.30.0030.05011.00
5.2.20.0100.04010.86
5.2.10.0030.03710.94
5.2.00.0070.03710.88
5.1.60.0000.03710.02
5.1.50.0030.03310.05
5.1.40.0070.0409.87
5.1.30.0070.03310.22
5.1.20.0070.03310.43
5.1.10.0070.0409.95
5.1.00.0030.05010.30
5.0.50.0030.0308.45
5.0.40.0070.0238.44
5.0.30.0030.0408.26
5.0.20.0000.0308.16
5.0.10.0000.0408.12
5.0.00.0130.0308.21
4.4.90.0000.0237.47
4.4.80.0030.0207.47
4.4.70.0070.0237.47
4.4.60.0030.0237.47
4.4.50.0030.0207.47
4.4.40.0000.0437.47
4.4.30.0030.0207.47
4.4.20.0070.0207.47
4.4.10.0100.0237.47
4.4.00.0100.0277.47
4.3.110.0000.0237.47
4.3.100.0000.0237.47
4.3.90.0000.0237.47
4.3.80.0030.0307.47
4.3.70.0070.0207.47
4.3.60.0000.0207.47
4.3.50.0000.0237.47
4.3.40.0030.0337.47
4.3.30.0000.0237.47
4.3.20.0030.0237.47
4.3.10.0070.0237.47
4.3.00.0130.0206.36

preferences:
53.47 ms | 401 KiB | 5 Q