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 $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.70.0070.01118.30
8.3.60.0120.00618.55
8.3.50.0070.00922.05
8.3.40.0040.01818.97
8.3.30.0110.00419.13
8.3.20.0070.00020.35
8.3.10.0050.00322.09
8.3.00.0040.00422.57
8.2.180.0100.00518.13
8.2.170.0030.01222.96
8.2.160.0110.00321.08
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00417.75
8.2.110.0030.00622.07
8.2.100.0040.00719.34
8.2.90.0000.00919.39
8.2.80.0030.00518.05
8.2.70.0070.00417.75
8.2.60.0090.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0070.00017.98
8.2.20.0070.00017.71
8.2.10.0060.00317.86
8.2.00.0000.00718.01
8.1.280.0090.00925.92
8.1.270.0030.00622.21
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.88
8.1.230.0120.00019.15
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0050.00717.38
8.1.190.0040.00417.51
8.1.180.0000.00818.71
8.1.170.0060.00318.83
8.1.160.0000.00822.09
8.1.150.0050.00218.87
8.1.140.0050.00317.68
8.1.130.0050.00217.79
8.1.120.0040.00417.70
8.1.110.0000.00717.68
8.1.100.0040.00417.56
8.1.90.0040.00417.51
8.1.80.0000.00717.71
8.1.70.0000.00717.61
8.1.60.0050.00317.59
8.1.50.0060.00317.70
8.1.40.0040.00417.53
8.1.30.0050.00317.74
8.1.20.0000.00817.70
8.1.10.0000.00817.68
8.1.00.0000.00717.64
8.0.300.0000.00918.77
8.0.290.0000.00717.04
8.0.280.0050.00318.42
8.0.270.0030.00317.24
8.0.260.0000.00617.08
8.0.250.0050.00217.04
8.0.240.0000.00817.16
8.0.230.0000.00717.11
8.0.220.0070.00017.00
8.0.210.0070.00017.10
8.0.200.0070.00017.12
8.0.190.0030.00517.19
8.0.180.0040.00417.14
8.0.170.0000.00817.10
8.0.160.0000.00717.07
8.0.150.0070.00017.04
8.0.140.0040.00416.95
8.0.130.0030.00313.47
8.0.120.0000.00817.02
8.0.110.0040.00417.00
8.0.100.0070.00017.05
8.0.90.0020.00516.96
8.0.80.0090.00617.01
8.0.70.0040.00416.99
8.0.60.0040.00416.96
8.0.50.0040.00416.96
8.0.30.0110.00917.12
8.0.20.0060.01217.40
8.0.10.0000.00717.27
8.0.00.0090.01116.94
7.4.330.0030.00315.14
7.4.320.0060.00016.53
7.4.300.0030.00316.75
7.4.290.0000.00716.72
7.4.280.0070.00016.71
7.4.270.0040.00416.73
7.4.260.0000.00716.75
7.4.250.0000.00716.54
7.4.240.0030.00516.61
7.4.230.0070.00016.52
7.4.220.0060.01016.61
7.4.210.0060.01216.75
7.4.200.0000.00716.52
7.4.190.0040.00416.59
7.4.160.0120.00616.47
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0100.00716.59
7.4.120.0120.00816.61
7.4.110.0060.01016.61
7.4.100.0070.01016.46
7.4.90.0130.01016.56
7.4.80.0080.01119.39
7.4.70.0040.01216.77
7.4.60.0220.00316.60
7.4.50.0040.00416.74
7.4.40.0070.01022.77
7.4.30.0090.01216.63
7.4.00.0180.00014.89
7.3.330.0050.00013.27
7.3.320.0020.00213.17
7.3.310.0080.00016.27
7.3.300.0070.00016.47
7.3.290.0080.00916.45
7.3.280.0070.00916.46
7.3.270.0120.00617.40
7.3.260.0180.00616.70
7.3.250.0050.01316.55
7.3.240.0030.01716.44
7.3.230.0150.00316.39
7.3.210.0090.01216.59
7.3.200.0080.01119.39
7.3.190.0070.01316.74
7.3.180.0060.01216.39
7.3.170.0070.01116.59
7.3.160.0080.01516.68
7.3.120.0040.01114.70
7.3.10.0050.00916.70
7.3.00.0050.00716.75
7.2.330.0030.01416.62
7.2.320.0040.01816.71
7.2.310.0140.00816.58
7.2.300.0100.01117.03
7.2.290.0170.00716.83
7.2.130.0020.01417.22
7.2.120.0080.00517.16
7.2.110.0020.01116.85
7.2.100.0060.01016.96
7.2.90.0080.00917.14
7.2.80.0050.00817.16
7.2.70.0070.01016.94
7.2.60.0080.00617.23
7.2.50.0060.00817.17
7.2.40.0040.00917.19
7.2.30.0030.01117.07
7.2.20.0110.00517.14
7.2.10.0080.00517.20
7.2.00.0050.00717.96
7.1.250.0080.00615.81
7.1.200.0000.01215.98
7.1.100.0080.00018.00
7.1.70.0060.00617.13
7.1.60.0000.02519.82
7.1.50.0030.02017.14
7.1.00.0100.07022.42
7.0.200.0050.00216.64
7.0.140.0000.07722.15
7.0.60.0200.07020.02
7.0.50.0170.07717.82
7.0.40.0130.08020.04
7.0.30.0300.05720.11
7.0.20.0300.07720.18
7.0.10.0400.06320.18
7.0.00.0030.04020.12
5.6.280.0070.07021.10
5.6.210.0170.06720.77
5.6.200.0100.07018.12
5.6.190.0070.07320.49
5.6.180.3730.04320.27
5.6.170.0300.07020.52
5.6.160.0030.05020.44
5.6.150.0070.05018.16
5.6.140.0030.04718.18
5.6.130.0030.08718.12
5.6.120.0130.08020.98
5.6.110.0130.06320.99
5.6.100.0070.06320.97
5.6.90.0030.08720.97
5.6.80.0130.07720.30
5.6.70.0200.03720.35
5.5.350.0030.08020.45
5.5.340.0030.04017.92
5.5.330.0030.05720.12
5.5.320.0230.07720.41
5.5.310.0330.07020.20
5.5.300.0130.06317.98
5.5.290.0070.08018.02
5.5.280.0030.04020.75
5.5.270.0130.07720.76
5.5.260.0070.07720.82
5.5.250.0030.08320.61
5.5.240.0100.05320.18
5.4.450.0530.05019.48
5.4.440.0200.07719.48
5.4.430.0070.06319.50
5.4.420.0170.04719.45
5.4.410.0130.05319.04
5.4.400.0830.00018.63
5.4.390.0770.00018.69
5.4.380.0300.06318.74
5.4.370.0770.06318.50
5.4.360.0870.05018.50
5.4.350.1000.05318.73
5.4.340.0800.05718.49
5.4.320.0050.04112.46
5.4.310.0080.03912.45
5.4.300.0100.03312.46
5.4.290.0070.04012.46
5.4.280.0100.03512.35
5.4.270.0080.03412.35
5.4.260.0100.07319.02
5.4.250.0130.05018.64
5.4.240.0130.07018.91
5.4.230.0030.05718.75
5.4.220.0100.05718.75
5.4.210.0070.05318.87
5.4.200.0030.08018.70
5.4.190.0170.06718.74
5.4.180.0130.06018.72
5.4.170.0000.06018.69
5.4.160.0030.08018.90
5.4.150.0070.06018.77
5.4.140.0100.05316.34
5.4.130.0030.07016.58
5.4.120.0070.06716.53
5.4.110.0170.06016.49
5.4.100.0130.04716.53
5.4.90.0100.04716.57
5.4.80.0030.05316.48
5.4.70.0130.04716.52
5.4.60.0100.04716.32
5.4.50.0130.06316.38
5.4.40.0130.04016.44
5.4.30.0070.05016.32
5.4.20.0100.05716.16
5.4.10.0200.06316.32
5.4.00.0070.06015.84
5.3.290.0060.04112.80
5.3.280.0200.05314.62
5.3.270.0000.08014.62
5.3.260.0070.07714.63
5.3.250.0070.05314.48
5.3.240.0170.06014.61
5.3.230.0130.05714.29
5.3.220.0100.05314.43
5.3.210.0070.07314.34
5.3.200.0030.05714.43
5.3.190.0100.06714.34
5.3.180.0100.05014.58
5.3.170.0100.07014.57
5.3.160.0070.05014.61
5.3.150.0130.05314.44
5.3.140.0170.06014.47
5.3.130.0100.07014.69
5.3.120.0100.06014.39
5.3.110.0200.04314.55
5.3.100.0170.06013.89
5.3.90.0170.06314.17
5.3.80.0070.06013.93
5.3.70.0100.07314.06
5.3.60.0100.05013.86
5.3.50.0070.05013.64
5.3.40.0100.06013.96
5.3.30.0070.04713.68
5.3.20.0130.06713.54
5.3.10.0070.05013.56
5.3.00.0130.05013.68
5.2.170.0000.05011.15
5.2.160.0030.06011.16
5.2.150.0030.05711.05
5.2.140.0030.04311.14
5.2.130.0070.04311.03
5.2.120.0130.04311.11
5.2.110.0100.04011.19
5.2.100.0100.04010.85
5.2.90.0130.04011.10
5.2.80.0030.06011.15
5.2.70.0000.06311.09
5.2.60.0070.05010.98
5.2.50.0070.04310.92
5.2.40.0030.05011.00
5.2.30.0170.04011.06
5.2.20.0030.04010.93
5.2.10.0100.03311.07
5.2.00.0030.04010.68
5.1.60.0100.0439.94
5.1.50.0070.0439.98
5.1.40.0030.0439.89
5.1.30.0100.04310.41
5.1.20.0030.05310.29
5.1.10.0070.04010.00
5.1.00.0170.02310.04
5.0.50.0030.0308.79
5.0.40.0070.0238.24
5.0.30.0000.0438.37
5.0.20.0070.0278.25
5.0.10.0070.0278.16
5.0.00.0070.0508.20
4.4.90.0000.0337.47
4.4.80.0000.0237.47
4.4.70.0030.0277.47
4.4.60.0030.0277.47
4.4.50.0000.0237.47
4.4.40.0000.0337.47
4.4.30.0000.0237.47
4.4.20.0000.0277.47
4.4.10.0000.0307.47
4.4.00.0000.0407.47
4.3.110.0030.0277.47
4.3.100.0000.0337.47
4.3.90.0000.0237.47
4.3.80.0030.0337.47
4.3.70.0000.0277.47
4.3.60.0030.0277.47
4.3.50.0030.0237.47
4.3.40.0030.0437.47
4.3.30.0000.0237.47
4.3.20.0000.0237.47
4.3.10.0000.0277.47
4.3.00.0130.0137.74

preferences:
35.52 ms | 401 KiB | 5 Q