3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); //to be sure that DateInterval will work as intended $today = new DateTime; $fist_day_of_the_month = $today->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.0090.00618.30
8.3.50.0110.00722.17
8.3.40.0090.00918.76
8.3.30.0040.01119.08
8.3.20.0070.00020.34
8.3.10.0040.00421.92
8.3.00.0050.00322.34
8.2.180.0090.00618.43
8.2.170.0140.00022.96
8.2.160.0030.01520.67
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00319.39
8.2.110.0060.00322.20
8.2.100.0100.00319.77
8.2.90.0040.00419.26
8.2.80.0060.00318.01
8.2.70.0040.00417.75
8.2.60.0030.00617.93
8.2.50.0090.00018.07
8.2.40.0060.00318.22
8.2.30.0070.00018.06
8.2.20.0000.00817.79
8.2.10.0000.00817.75
8.2.00.0030.00517.81
8.1.280.0140.00425.92
8.1.270.0000.00822.19
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00023.92
8.1.230.0110.00019.29
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0040.00417.53
8.1.180.0050.00218.77
8.1.170.0000.00818.75
8.1.160.0040.00421.93
8.1.150.0080.00018.92
8.1.140.0040.00417.55
8.1.130.0030.00317.81
8.1.120.0000.00817.62
8.1.110.0000.00717.66
8.1.100.0040.00417.61
8.1.90.0040.00417.61
8.1.80.0040.00417.58
8.1.70.0030.00317.55
8.1.60.0070.00017.80
8.1.50.0000.00717.65
8.1.40.0090.00017.63
8.1.30.0040.00417.74
8.1.20.0060.00317.82
8.1.10.0000.00717.66
8.1.00.0000.00717.66
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0070.00018.52
8.0.270.0030.00317.24
8.0.260.0030.00316.91
8.0.250.0070.00017.20
8.0.240.0060.00317.09
8.0.230.0030.00517.12
8.0.220.0000.00717.11
8.0.210.0030.00317.05
8.0.200.0080.00017.13
8.0.190.0000.00717.14
8.0.180.0070.00017.08
8.0.170.0060.00317.02
8.0.160.0050.00317.18
8.0.150.0000.00717.02
8.0.140.0070.00017.07
8.0.130.0030.00313.53
8.0.120.0040.00417.02
8.0.110.0000.00817.08
8.0.100.0000.00816.91
8.0.90.0000.00817.15
8.0.80.0040.01117.04
8.0.70.0000.00716.96
8.0.60.0040.00416.87
8.0.50.0070.00016.94
8.0.30.0130.00617.21
8.0.20.0100.00917.40
8.0.10.0050.00217.23
8.0.00.0120.00716.82
7.4.330.0000.00515.03
7.4.320.0000.00616.57
7.4.300.0000.00616.57
7.4.290.0000.00716.74
7.4.280.0000.00816.77
7.4.270.0000.00816.68
7.4.260.0070.00016.63
7.4.250.0040.00416.69
7.4.240.0000.00816.68
7.4.230.0070.00016.57
7.4.220.0120.00616.70
7.4.210.0110.00316.71
7.4.200.0030.00316.48
7.4.190.0000.00716.69
7.4.160.0080.00816.63
7.4.150.0080.01117.40
7.4.140.0130.01017.86
7.4.130.0080.00916.58
7.4.120.0060.01216.71
7.4.110.0070.01016.74
7.4.100.0090.01016.64
7.4.90.0110.00616.78
7.4.80.0070.01019.39
7.4.70.0080.00816.63
7.4.60.0070.01016.63
7.4.50.0030.00516.84
7.4.40.0110.00322.77
7.4.30.0060.01016.72
7.4.00.0120.00515.04
7.3.330.0000.00513.36
7.3.320.0030.00313.30
7.3.310.0040.00416.32
7.3.300.0030.00316.46
7.3.290.0120.00916.48
7.3.280.0120.00516.49
7.3.270.0160.00317.40
7.3.260.0090.01516.62
7.3.250.0070.01216.57
7.3.240.0170.00716.69
7.3.230.0070.01116.67
7.3.210.0110.00616.52
7.3.200.0080.00819.39
7.3.190.0090.01416.71
7.3.180.0080.00816.90
7.3.170.0130.01016.53
7.3.160.0070.01216.69
7.3.120.0030.01414.96
7.3.110.0130.00314.98
7.3.100.0050.01014.96
7.3.90.0070.00815.19
7.3.80.0070.01015.21
7.3.70.0060.00514.79
7.3.60.0080.00815.03
7.3.50.0050.00814.96
7.3.40.0080.00815.02
7.3.30.0060.00714.80
7.3.20.0050.00516.79
7.3.10.0070.00716.60
7.3.00.0100.00316.55
7.2.330.0000.01716.84
7.2.320.0090.01316.78
7.2.310.0180.00616.82
7.2.300.0090.00916.70
7.2.290.0180.01616.60
7.2.250.0070.01015.18
7.2.240.0090.00615.18
7.2.230.0100.00615.21
7.2.220.0080.00715.23
7.2.210.0050.01315.31
7.2.200.0110.00315.27
7.2.190.0030.01115.16
7.2.180.0090.00915.30
7.2.170.0070.00915.18
7.2.160.0070.00715.02
7.2.150.0110.00417.25
7.2.140.0000.00916.88
7.2.130.0030.01017.00
7.2.120.0120.00317.16
7.2.110.0040.01117.32
7.2.100.0030.01217.11
7.2.90.0070.01017.02
7.2.80.0060.00617.26
7.2.70.0090.00317.33
7.2.60.0070.00717.21
7.2.50.0060.00317.15
7.2.40.0040.00716.82
7.2.30.0030.01217.29
7.2.20.0030.00917.02
7.2.10.0070.00716.82
7.2.00.0040.00918.42
7.1.330.0060.00715.97
7.1.320.0070.00715.75
7.1.310.0060.00715.68
7.1.300.0070.00715.97
7.1.290.0030.01015.88
7.1.280.0100.00216.04
7.1.270.0050.00715.60
7.1.260.0130.00216.01
7.1.250.0070.00715.89
7.1.200.0040.00815.79
7.1.100.0000.00818.36
7.1.70.0070.00417.25
7.1.60.0130.01019.82
7.1.50.0100.01317.16
7.1.00.0070.07322.45
7.0.200.0070.00316.65
7.0.140.0030.07322.13
7.0.60.0100.04319.79
7.0.50.0100.05017.85
7.0.40.0070.07020.04
7.0.30.0200.05720.13
7.0.20.0170.04020.33
7.0.10.0070.05320.33
7.0.00.0100.05020.21
5.6.280.0030.07020.90
5.6.210.0030.04720.72
5.6.200.0130.03718.22
5.6.190.0170.06020.39
5.6.180.0300.07020.60
5.6.170.0130.04320.53
5.6.160.0070.07320.50
5.6.150.0000.04318.18
5.6.140.0030.05018.11
5.6.130.0100.08318.17
5.6.120.0030.05720.95
5.6.110.0070.05721.11
5.6.100.0070.06021.14
5.6.90.0130.06720.95
5.6.80.0030.07720.39
5.5.350.0000.08020.32
5.5.340.0030.06718.04
5.5.330.0100.08320.07
5.5.320.3570.04020.24
5.5.310.0230.04720.30
5.5.300.0030.07717.92
5.5.290.0030.05317.99
5.5.280.0000.09320.87
5.5.270.0030.05020.85
5.5.260.0070.09020.86
5.5.250.0100.08020.58
5.5.240.0100.07320.18
5.4.450.0700.04319.43
5.4.440.0170.03719.41
5.4.430.0070.05719.68
5.4.420.0130.06019.52
5.4.410.0130.06318.88
5.4.400.0070.05318.51
5.4.390.0100.05018.59
5.4.380.0030.06018.66
5.4.370.1230.05018.78
5.4.360.1000.06318.50
5.4.350.0930.04718.68
5.4.340.0870.05318.69
5.4.320.0060.04012.45
5.4.310.0060.03912.45
5.4.300.0060.03712.45
5.4.290.0090.05212.45
5.4.280.0070.03512.35
5.4.270.0090.03812.35
5.4.260.0130.07319.03
5.4.250.0070.06018.86
5.4.240.0100.06318.89
5.4.230.0100.05718.65
5.4.220.0070.07318.89
5.4.210.0130.07018.73
5.4.200.0130.04718.86
5.4.190.0200.04018.82
5.4.180.0030.05319.01
5.4.170.0100.04718.69
5.4.160.0170.05018.86
5.4.150.0170.04318.86
5.4.140.0200.04016.34
5.4.130.0070.07016.33
5.4.120.0170.05316.27
5.4.110.0070.05716.39
5.4.100.0030.05716.45
5.4.90.0070.05016.39
5.4.80.0100.05016.37
5.4.70.0100.07316.51
5.4.60.0200.04016.46
5.4.50.0100.04316.39
5.4.40.0100.05716.52
5.4.30.0070.06316.44
5.4.20.0100.05016.41
5.4.10.0170.04716.38
5.4.00.0230.05015.71
5.3.290.0080.05412.80
5.3.280.0070.05714.43
5.3.270.0030.05714.61
5.3.260.0170.04714.75
5.3.250.0100.05014.62
5.3.240.0030.06014.61
5.3.230.0200.06014.44
5.3.220.0100.04714.57
5.3.210.0030.07314.48
5.3.200.0100.04714.41
5.3.190.0000.06014.34
5.3.180.0100.05314.57
5.3.170.0100.07014.33
5.3.160.0130.06014.48
5.3.150.0130.06714.44
5.3.140.0130.04314.57
5.3.130.0100.06714.56
5.3.120.0130.06314.32
5.3.110.0070.06014.54
5.3.100.0070.07714.05
5.3.90.0030.06013.71
5.3.80.0000.06313.89
5.3.70.0100.05013.88
5.3.60.0070.05314.09
5.3.50.0100.05014.10
5.3.40.0070.07314.10
5.3.30.0070.05313.85
5.3.20.0030.07313.54
5.3.10.0130.06313.51
5.3.00.0200.05013.50
5.2.170.0070.04711.16
5.2.160.0070.05310.90
5.2.150.0100.03711.25
5.2.140.0100.05011.25
5.2.130.0000.06011.11
5.2.120.0030.04011.00
5.2.110.0070.04011.18
5.2.100.0130.03011.02
5.2.90.0000.04711.24
5.2.80.0000.04310.93
5.2.70.0100.03311.02
5.2.60.0100.03310.97
5.2.50.0070.04311.13
5.2.40.0100.03311.00
5.2.30.0070.04310.98
5.2.20.0030.04010.96
5.2.10.0100.05010.85
5.2.00.0130.04710.93
5.1.60.0000.04710.14
5.1.50.0100.03010.14
5.1.40.0030.04710.16
5.1.30.0000.03710.31
5.1.20.0170.02710.26
5.1.10.0070.04710.27
5.1.00.0000.0409.83
5.0.50.0070.0278.59
5.0.40.0000.0338.34
5.0.30.0070.0508.19
5.0.20.0000.0378.29
5.0.10.0130.0308.26
5.0.00.0030.0537.99
4.4.90.0000.0237.09
4.4.80.0030.0207.09
4.4.70.0000.0307.09
4.4.60.0030.0277.09
4.4.50.0030.0207.09
4.4.40.0000.0377.09
4.4.30.0000.0237.09
4.4.20.0000.0307.09
4.4.10.0100.0177.09
4.4.00.0030.0437.09
4.3.110.0030.0307.09
4.3.100.0070.0237.09
4.3.90.0070.0237.09
4.3.80.0000.0337.07
4.3.70.0100.0237.07
4.3.60.0000.0237.07
4.3.50.0000.0237.07
4.3.40.0000.0377.07
4.3.30.0000.0237.07
4.3.20.0000.0237.07
4.3.10.0030.0237.07
4.3.00.0330.01013.22

preferences:
52.01 ms | 400 KiB | 5 Q