3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d', strtotime('last day of this month previous year')) . PHP_EOL; echo (new DateTime('last day of this month previous year'))->format('Y-m-d');

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.120.0030.00618.87
8.3.110.0000.00820.94
8.3.100.0060.00316.54
8.3.90.0090.00626.77
8.3.80.0090.00019.36
8.3.70.0000.01518.31
8.3.60.0120.00618.68
8.3.50.0030.01323.65
8.3.40.0040.01118.96
8.3.30.0120.00918.83
8.3.20.0080.00024.18
8.3.10.0050.00224.66
8.3.00.0050.00326.16
8.2.240.0080.00017.44
8.2.230.0050.00322.58
8.2.220.0030.00724.06
8.2.210.0110.00726.77
8.2.200.0090.00018.88
8.2.190.0100.01018.66
8.2.180.0090.00925.92
8.2.170.0100.01019.21
8.2.160.0170.00022.96
8.2.150.0030.00525.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.36
8.2.110.0060.00320.66
8.2.100.0040.00819.46
8.2.90.0080.00017.88
8.2.80.0050.00318.92
8.2.70.0050.00317.75
8.2.60.0080.00017.75
8.2.50.0040.00418.05
8.2.40.0060.00318.34
8.2.30.0000.00718.18
8.2.20.0040.00418.05
8.2.10.0040.00419.15
8.2.00.0040.00419.31
8.1.300.0140.00420.11
8.1.290.0040.00430.84
8.1.280.0160.00625.92
8.1.270.0050.00223.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.73
8.1.230.0030.00722.31
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00017.38
8.1.190.0000.00817.35
8.1.180.0030.00619.27
8.1.170.0040.00418.79
8.1.160.0090.00019.06
8.1.150.0000.00818.87
8.1.140.0050.00218.85
8.1.130.0070.00020.08
8.1.120.0040.00417.57
8.1.110.0080.00017.65
8.1.100.0040.00317.66
8.1.90.0040.00417.58
8.1.80.0000.00917.70
8.1.70.0040.00417.70
8.1.60.0030.00617.67
8.1.50.0040.00417.54
8.1.40.0030.00517.57
8.1.30.0000.00817.77
8.1.20.0040.00417.71
8.1.10.0040.00417.77
8.1.00.0080.00017.55
8.0.300.0000.00818.77
8.0.290.0050.00216.88
8.0.280.0000.00818.52
8.0.270.0030.00318.23
8.0.260.0060.00018.53
8.0.250.0050.00217.26
8.0.240.0040.00417.09
8.0.230.0000.00717.19
8.0.220.0000.00817.09
8.0.210.0030.00317.00
8.0.200.0000.00717.14
8.0.190.0030.00517.12
8.0.180.0040.00417.07
8.0.170.0040.00417.00
8.0.160.0030.00417.17
8.0.150.0080.00016.98
8.0.140.0000.00716.99
8.0.130.0050.00013.44
8.0.120.0060.00317.00
8.0.110.0080.00017.20
8.0.100.0000.00717.15
8.0.90.0040.00416.96
8.0.80.0070.01217.11
8.0.70.0040.00416.93
8.0.60.0000.00717.05
8.0.50.0050.00316.98
8.0.30.0030.01417.21
8.0.20.0120.00817.40
8.0.10.0130.00817.40
8.0.00.0080.01517.44
7.4.330.0050.00016.71
7.4.320.0030.00316.67
7.4.300.0030.00316.48
7.4.290.0000.00716.52
7.4.280.0050.00216.50
7.4.270.0030.00316.59
7.4.260.0000.00613.30
7.4.250.0070.00016.62
7.4.240.0070.00016.53
7.4.230.0040.00416.40
7.4.220.0050.00216.50
7.4.210.0060.01016.66
7.4.200.0000.00816.41
7.4.150.0100.01017.40
7.4.140.0160.00817.40
7.4.130.0130.01017.40
7.4.120.0110.01317.40
7.4.110.0180.00417.40
7.4.100.0170.00517.40
7.4.90.0140.00617.40
7.4.80.0110.01017.40
7.4.70.0110.01017.40
7.4.60.0080.01117.40
7.4.50.0120.00917.40
7.4.40.0120.00817.40
7.4.30.0130.00917.40
7.4.20.0100.01117.40
7.4.10.0100.01217.40
7.4.00.0170.00617.40
7.3.330.0070.00016.20
7.3.320.0000.00513.26
7.3.310.0070.00016.40
7.3.300.0030.00316.30
7.3.290.0050.01016.40
7.3.270.0100.00717.40
7.3.260.0160.00617.40
7.3.250.0180.00417.40
7.3.240.0060.01717.40
7.3.230.0140.00617.40
7.3.220.0150.00417.40
7.3.210.0100.01117.40
7.3.200.0120.00817.40
7.3.190.0080.01117.40
7.3.180.0040.01417.40
7.3.170.0120.00817.40
7.3.160.0120.00917.40
7.3.150.0140.00517.40
7.3.140.0090.01117.40
7.3.130.0080.01117.40
7.3.120.0180.00317.40
7.3.110.0070.01317.40
7.3.100.0090.01017.40
7.3.90.0130.00717.40
7.3.80.0150.00317.40
7.3.70.0100.00717.40
7.3.60.0090.01117.40
7.3.50.0080.01017.40
7.3.40.0060.01117.40
7.3.30.0100.00817.40
7.3.20.0110.00617.40
7.3.10.0110.01017.40
7.3.00.0120.01017.40

preferences:
32.85 ms | 403 KiB | 5 Q