3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin_date = '2019-12-30'; $date = new DateTime($begin_date); $original_date = clone $date; for ($i = 1; $i <= 5; $i++) { echo '<p>'.$date->format("Y-m-d")."</p>\n"; $date->modify("last day of next month"); if ($date->format("d") > $original_date->format("d")) { $date->modify("-".($date->format("d") - $original_date->format("d"))." day"); } }

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.4.10.0030.00617.63
8.3.140.0140.00416.90
8.3.130.0030.00616.78
8.3.120.0060.00318.94
8.3.110.0040.00418.48
8.3.100.0070.01220.28
8.3.90.0040.01121.70
8.3.80.0120.00317.57
8.3.70.0150.00516.63
8.3.60.0120.00917.59
8.3.50.0090.01219.64
8.3.40.0110.00618.26
8.3.30.0100.00718.17
8.3.20.0070.00719.69
8.3.10.0070.00719.86
8.3.00.0100.00420.51
8.2.260.0030.01217.02
8.2.250.0080.00018.82
8.2.240.0080.00317.28
8.2.230.0000.00820.94
8.2.220.0060.00727.07
8.2.210.0060.00921.65
8.2.200.0100.00417.71
8.2.190.0100.01016.69
8.2.180.0110.01016.56
8.2.170.0080.01020.42
8.2.160.0110.00619.11
8.2.150.0130.00320.97
8.2.140.0050.00921.27
8.2.130.0110.00521.88
8.2.120.0080.01022.02
8.2.110.0060.00819.20
8.2.100.0030.00818.88
8.2.90.0030.00617.94
8.2.80.0120.00518.31
8.2.70.0100.00017.81
8.2.60.0040.00917.68
8.2.50.0070.00217.84
8.2.40.0080.00317.96
8.2.30.0050.00418.65
8.2.20.0060.00217.93
8.2.10.0050.00318.63
8.2.00.0050.00518.65
8.1.310.0140.00316.94
8.1.300.0070.01118.05
8.1.290.0070.00823.61
8.1.280.0160.00221.02
8.1.270.0090.00520.58
8.1.260.0100.00421.98
8.1.250.0070.00622.85
8.1.240.0080.00720.67
8.1.230.0090.00717.53
8.1.220.0080.00717.64
8.1.210.0080.00617.93
8.1.200.0120.00417.54
8.1.190.0080.00517.43
8.1.180.0120.00117.66
8.1.170.0100.00317.61
8.1.160.0040.00818.27
8.1.150.0020.00918.32
8.1.140.0060.00820.79
8.1.130.0070.00718.92
8.1.120.0090.00617.66
8.1.110.0070.00817.67
8.1.100.0040.00917.60
8.1.90.0120.00217.41
8.1.80.0050.00917.62
8.1.70.0080.00517.66
8.1.60.0080.00517.62
8.1.50.0100.00317.54
8.1.40.0040.00517.70
8.1.30.0040.00417.75
8.1.20.0060.00417.79
8.1.10.0020.00617.64
8.1.00.0060.00217.63
8.0.300.0160.00317.76
8.0.290.0180.00516.81
8.0.280.0150.00817.62
8.0.270.0200.00517.19
8.0.260.0140.01018.45
8.0.250.0110.01417.14
8.0.240.0220.00317.11
8.0.230.0180.00817.15
8.0.220.0170.00616.88
8.0.210.0190.00516.93
8.0.200.0170.00617.00
8.0.190.0180.00616.95
8.0.180.0140.00517.01
8.0.170.0140.00617.05
8.0.160.0150.00616.99
8.0.150.0190.00516.90
8.0.140.0180.00616.87
8.0.130.0200.00515.16
8.0.120.0150.00816.97
8.0.110.0140.01017.03
8.0.100.0130.01016.98
8.0.90.0160.00517.02
8.0.80.0140.00916.99
8.0.70.0120.01216.98
8.0.60.0140.01017.12
8.0.50.0180.00617.01
8.0.30.0180.00917.21
8.0.20.0180.01017.09
8.0.10.0140.01017.16
8.0.00.0090.01116.98
7.4.330.0160.00715.96
7.4.320.0160.00716.61
7.4.300.0180.00316.44
7.4.290.0160.00616.61
7.4.280.0190.00316.51
7.4.270.0220.00216.59
7.4.260.0150.00716.64
7.4.250.0170.00516.51
7.4.240.0140.00416.59
7.4.230.0200.00316.58
7.4.220.0150.00816.66
7.4.210.0110.01016.66
7.4.200.0190.00316.66
7.4.190.0310.00316.38
7.4.180.0280.00916.38
7.4.160.0270.00616.50
7.4.150.0140.01416.38
7.4.140.0230.00617.12
7.4.130.0200.00716.56
7.4.120.0160.01116.51
7.4.110.0210.00716.54
7.4.100.0210.00516.53
7.4.90.0190.00816.64
7.4.80.0210.00517.81
7.4.70.0170.00916.53
7.4.60.0190.00616.63
7.4.50.0170.00816.51
7.4.40.0170.00916.49
7.4.30.0300.00416.25
7.4.20.0260.00916.38
7.4.10.0250.01116.22
7.4.00.0190.00515.90
7.3.330.0060.00714.60
7.3.320.0160.00414.63
7.3.310.0160.00516.32
7.3.300.0130.00716.22
7.3.290.0140.00916.30
7.3.280.0200.00916.19
7.3.270.0290.00716.25
7.3.260.0130.00816.55
7.3.250.0270.00516.25
7.3.240.0090.01016.51
7.3.230.0130.00516.63
7.3.220.0100.00616.25
7.3.210.0090.00816.51
7.3.200.0170.00816.50
7.3.190.0160.00616.20
7.3.180.0140.00516.22
7.3.170.0120.00616.39
7.3.160.0150.00916.44
7.3.150.0270.00316.00
7.3.140.0180.00316.13
7.3.130.0320.00416.38
7.3.120.0260.00916.13
7.3.110.0300.00415.88
7.3.100.0190.01616.38
7.3.90.0250.00916.13
7.3.80.0280.00716.13
7.3.70.0150.00615.29
7.3.60.0160.00615.36
7.3.50.0150.00515.38
7.3.40.0100.00915.28
7.3.30.0150.00615.32
7.3.20.0200.00316.64
7.3.10.0120.00916.58
7.3.00.0150.00716.39
7.2.340.0340.00316.25
7.2.330.0200.00716.69
7.2.320.0220.00516.67
7.2.310.0160.01016.66
7.2.300.0150.01216.67
7.2.290.0170.00716.51
7.2.280.0280.00616.50
7.2.270.0340.00016.50
7.2.260.0330.00316.50
7.2.250.0310.00316.38
7.2.240.0320.00016.50
7.2.230.0280.00316.25
7.2.220.0240.01016.00
7.2.210.0210.00716.38
7.2.200.0150.01015.60
7.2.190.0160.00315.47
7.2.180.0170.00915.63
7.2.170.0150.00415.58
7.2.160.0110.00815.64
7.2.150.0110.00716.85
7.2.140.0100.00416.85
7.2.130.0190.00716.86
7.2.120.0060.01016.93
7.2.110.0170.00616.94
7.2.100.0160.00916.82
7.2.90.0160.00716.85
7.2.80.0130.00816.92
7.2.70.0140.01216.92
7.2.60.0160.01117.00
7.2.50.0200.00716.86
7.2.40.0160.00816.72
7.2.30.0150.00917.01
7.2.20.0170.00516.80
7.2.10.0150.01016.85
7.2.00.0090.01316.89
7.1.330.0310.00615.50
7.1.320.0200.00615.63
7.1.310.0230.01115.63
7.1.300.0150.00715.68
7.1.290.0150.00815.84
7.1.280.0150.00515.76
7.1.270.0130.00815.73
7.1.260.0130.00615.90
7.1.250.0160.00215.64
7.1.240.0290.00515.50
7.1.230.0320.00615.38
7.1.220.0330.00015.38
7.1.210.0260.00415.75
7.1.200.0240.00615.50
7.1.190.1380.01015.38
7.1.180.0160.00315.63
7.1.170.0180.00615.50
7.1.160.0270.00715.50
7.1.150.0220.00915.38
7.1.140.0190.01215.50
7.1.130.0190.01115.50
7.1.120.0220.01115.63
7.1.110.0310.00315.75
7.1.100.0270.00615.50
7.1.90.0340.00015.50
7.1.80.0300.00415.75
7.1.70.0310.00315.25
7.1.60.0170.01015.50
7.1.50.0230.00515.50
7.1.40.0270.00715.38
7.1.30.0270.00815.63
7.1.20.0300.00715.38
7.1.10.0250.00615.50
7.1.00.0270.00315.50

preferences:
33.57 ms | 403 KiB | 5 Q