3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin_date = '2019-12-30'; $date = new DateTime($begin_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") > 30) { $date->modify("-1 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.0050.00517.86
8.3.140.0080.00820.65
8.3.130.0060.00318.72
8.3.120.0040.01519.00
8.3.110.0060.00320.94
8.3.100.0120.00318.53
8.3.90.0100.01016.68
8.3.80.0030.00618.31
8.3.70.0130.01018.55
8.3.60.0150.00618.52
8.3.50.0130.00821.33
8.3.40.0110.00418.85
8.3.30.0070.00718.88
8.3.20.0040.00421.94
8.3.10.0090.00021.98
8.3.00.0000.00823.65
8.2.260.0130.00616.72
8.2.250.0050.00318.34
8.2.240.0120.00319.00
8.2.230.0080.00022.58
8.2.220.0000.00824.06
8.2.210.0140.00026.77
8.2.200.0070.00317.00
8.2.190.0090.00616.63
8.2.180.0140.00716.88
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0030.00526.16
8.2.120.0040.00426.16
8.2.110.0100.00021.13
8.2.100.0080.00317.84
8.2.90.0030.00617.93
8.2.80.0000.00818.16
8.2.70.0040.00417.88
8.2.60.0050.00317.88
8.2.50.0080.00017.88
8.2.40.0030.00519.48
8.2.30.0000.00819.72
8.2.20.0040.00418.29
8.2.10.0000.00719.54
8.2.00.0000.00819.57
8.1.310.0000.00916.50
8.1.300.0090.00017.95
8.1.290.0080.00018.88
8.1.280.0070.00725.92
8.1.270.0060.00322.17
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00622.64
8.1.230.0040.00722.67
8.1.220.0000.00817.80
8.1.210.0030.00618.84
8.1.200.0000.00817.48
8.1.190.0040.00417.47
8.1.180.0000.00818.10
8.1.170.0080.00017.94
8.1.160.0040.00419.00
8.1.150.0050.00319.06
8.1.140.0040.00424.00
8.1.130.0070.00020.12
8.1.120.0060.00617.70
8.1.110.0070.00317.71
8.1.100.0000.00817.63
8.1.90.0040.00417.59
8.1.80.0030.00617.64
8.1.70.0040.00417.68
8.1.60.0000.00917.69
8.1.50.0000.00817.59
8.1.40.0080.00017.71
8.1.30.0000.00817.77
8.1.20.0040.00817.79
8.1.10.0050.00317.76
8.1.00.0080.00017.73
8.0.300.0050.00220.11
8.0.290.0080.00016.75
8.0.280.0030.00318.26
8.0.270.0080.00018.26
8.0.260.0070.00020.19
8.0.250.0070.00017.17
8.0.240.0000.00817.11
8.0.230.0030.00317.23
8.0.220.0000.00717.08
8.0.210.0030.00317.03
8.0.200.0030.00317.24
8.0.190.0090.00017.14
8.0.180.0040.00417.20
8.0.170.0030.00617.07
8.0.160.0000.00817.04
8.0.150.0070.00017.15
8.0.140.0000.00717.13
8.0.130.0040.00313.59
8.0.120.0000.00817.17
8.0.110.0030.00617.15
8.0.100.0030.00617.20
8.0.90.0030.00617.12
8.0.80.0040.01117.14
8.0.70.0070.00017.15
8.0.60.0030.00517.14
8.0.50.0050.00317.13
8.0.30.0100.01517.27
8.0.20.0080.01117.12
8.0.10.0020.00517.14
8.0.00.0100.00916.90
7.4.330.0030.00315.55
7.4.320.0000.00716.82
7.4.300.0000.00616.80
7.4.290.0030.00516.78
7.4.280.0000.00716.68
7.4.270.0040.00816.60
7.4.260.0000.00816.75
7.4.250.0070.00016.77
7.4.240.0050.00216.78
7.4.230.0000.00716.51
7.4.220.0030.00316.59
7.4.210.0070.00916.84
7.4.200.0000.00716.58
7.4.140.0100.01017.86
7.4.130.0110.00716.90
7.4.120.0080.00916.68
7.4.110.0080.01116.70
7.4.100.0130.01016.71
7.4.90.0100.00616.71
7.4.80.0110.00619.39
7.4.70.0080.00816.79
7.4.60.0030.01316.93
7.4.50.0030.01216.70
7.4.40.0080.00816.68
7.4.00.0040.00814.74
7.3.330.0030.00313.14
7.3.320.0000.00513.38
7.3.310.0080.00016.30
7.3.300.0000.00716.33
7.3.290.0080.00816.40
7.3.280.0070.01416.41
7.3.260.0100.00716.62
7.3.240.0090.00916.64
7.3.230.0120.00616.70
7.3.210.0090.00616.39
7.3.200.0110.00516.81
7.3.190.0070.01016.63
7.3.180.0100.00616.54
7.3.170.0060.01216.71
7.3.160.0110.00416.80
7.3.70.0150.00715.01
7.3.60.0130.00314.95
7.3.50.0090.00614.95
7.3.40.0060.00614.65
7.3.30.0040.01215.02
7.3.20.0180.00314.88
7.3.10.0240.00915.03
7.3.00.0240.00315.07
7.2.330.0110.00716.62
7.2.320.0160.00316.88
7.2.310.0030.01416.91
7.2.300.0120.00916.95
7.2.290.0100.01016.92
7.2.200.0170.00315.27
7.2.190.0000.01315.30
7.2.180.0100.00315.01
7.2.170.0130.00615.14
7.2.160.0050.00815.40
7.2.150.0140.01415.39
7.2.140.0190.01115.19
7.2.130.0270.00715.19
7.2.120.0180.00415.32
7.2.110.0180.00315.30
7.2.100.0210.01515.20
7.2.90.0150.00915.21
7.2.80.0180.00715.33
7.2.70.0260.00815.32
7.2.60.0250.00315.31
7.2.50.0250.00015.27
7.2.40.0840.00615.28
7.2.30.0220.00715.42
7.2.20.0230.00715.40
7.2.10.0290.00915.16
7.2.00.0150.00915.26
7.1.300.0330.00014.15
7.1.290.0140.01014.25
7.1.280.0170.00714.08
7.1.270.0230.01314.20
7.1.260.0180.00414.01
7.1.250.0170.00314.14

preferences:
26.23 ms | 403 KiB | 5 Q