3v4l.org

run code in 300+ PHP versions simultaneously
<?php $og = new DateTimeImmutable(date('2025-03-31')); $next_month = $og->modify('last day of next month'); echo "Start Date: " . $og->format('Y-m-d') . "\n"; echo "Next Month: " . $next_month->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.5.00.0140.00720.34
8.4.150.0020.00114.05
8.4.140.0120.00817.76
8.4.130.0090.00317.94
8.4.120.0110.00822.18
8.4.110.0050.00519.00
8.4.100.0080.01117.82
8.4.90.0120.00518.00
8.4.80.0090.00819.63
8.4.70.0050.00419.67
8.4.60.0130.01217.98
8.4.50.0210.01117.84
8.4.40.0150.00717.64
8.4.30.0100.00617.93
8.4.20.0030.00717.82
8.4.10.0130.00617.45
8.3.280.0020.00114.05
8.3.270.0120.00816.69
8.3.260.0050.00416.66
8.3.250.0030.00518.62
8.3.240.0090.01016.70
8.3.230.0100.00616.67
8.3.220.0100.00716.77
8.3.210.0110.00616.97
8.3.200.0110.00916.85
8.3.190.0070.00218.66
8.3.180.0060.00616.81
8.3.170.0050.00616.77
8.3.160.0090.00316.56
8.3.150.0070.00516.75
8.3.140.0050.00518.12
8.3.130.0050.00516.66
8.3.120.0060.00616.30
8.3.110.0090.00116.60
8.3.100.0090.00216.84
8.3.90.0070.00516.69
8.3.80.0060.00416.72
8.3.70.0030.00716.82
8.3.60.0060.00316.57
8.3.50.0080.00216.85
8.3.40.0060.00517.75
8.3.30.0090.00217.65
8.3.20.0080.00317.64
8.3.10.0110.00317.17
8.3.00.0070.00618.99
8.2.290.0100.00818.92
8.2.280.0120.00216.31
8.2.270.0130.00316.68
8.2.260.0100.00316.48
8.2.250.0090.00516.35
8.2.240.0100.00316.88
8.2.230.0120.00316.03
8.2.220.0120.00116.46
8.2.210.0100.00515.98
8.2.200.0130.00316.56
8.2.190.0120.00216.52
8.2.180.0150.00216.33
8.2.170.0140.00517.00
8.2.160.0160.00417.37
8.2.150.0160.00117.71
8.2.140.0160.00117.77
8.2.130.0160.00817.17
8.2.120.0150.00617.60
8.2.110.0110.00616.93
8.2.100.0180.00717.44
8.2.90.0160.00417.43
8.2.80.0210.00517.26
8.2.70.0160.00717.41
8.2.60.0210.00717.57
8.2.50.0170.01017.38
8.2.40.0130.00317.29
8.2.30.0120.00417.28
8.2.20.0110.00417.34
8.2.10.0140.00717.58
8.2.00.0090.00617.52

preferences:
52.93 ms | 403 KiB | 5 Q