3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Asia/Tokyo'); $nowDate = (new DateTime('2024-04-01 00:49:22'))->setTimeZone(new DateTimeZone('Asia/Tokyo')); $endDate = (new DateTime('2024-04-01 08:48:22'))->setTimeZone(new DateTimeZone('UTC')); echo $nowDate->format('Y-m-d H:i:sP') . "\n"; echo $endDate->format('Y-m-d H:i:sP') . "\n"; echo date_diff($nowDate, $endDate)->format('%Y-%M-%D %H:%I:%S');

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.30.0080.00819.60
8.5.20.0120.00820.26
8.5.10.0150.00716.91
8.5.00.0120.00919.91
8.4.180.0120.01025.70
8.4.170.0100.01122.08
8.4.160.0120.00923.76
8.4.150.0080.00416.88
8.4.140.0140.01117.65
8.4.130.0110.00917.93
8.4.120.0250.00818.86
8.4.110.0290.01019.21
8.4.100.0310.00717.70
8.4.90.0290.00718.34
8.4.80.0300.00618.77
8.4.70.0270.00817.89
8.4.60.0290.00618.11
8.4.50.0290.00818.46
8.4.40.0300.00617.83
8.4.30.0170.00817.92
8.4.20.0220.01118.27
8.4.10.0180.00718.23
8.3.300.0130.00920.69
8.3.290.0140.00918.54
8.3.280.0100.01018.52
8.3.270.0130.00616.55
8.3.260.0110.00916.60
8.3.250.0210.00617.35
8.3.240.0220.00516.62
8.3.230.0160.00616.61
8.3.220.0200.00517.31
8.3.210.0200.00717.20
8.3.200.0270.00416.57
8.3.190.0200.00816.85
8.3.180.0140.00516.84
8.3.170.0200.00517.28
8.3.160.0280.00716.71
8.3.150.0300.00916.68
8.3.140.0330.00717.32
8.3.130.0280.00417.04
8.3.120.0160.00617.13
8.3.110.0270.00717.50
8.3.100.0230.00518.39
8.3.90.0260.00419.04
8.3.80.0210.00617.06
8.3.70.0270.00616.77
8.3.60.0270.00518.83
8.3.50.0230.00618.47
8.3.40.0170.00819.74
8.3.30.0190.00719.21
8.3.20.0160.00721.10
8.3.10.0160.00821.10
8.3.00.0170.00819.15
8.2.300.0130.00818.85
8.2.290.0230.00917.83
8.2.280.0250.00817.19
8.2.270.0240.00916.82
8.2.260.0170.00517.25
8.2.250.0170.00517.17
8.2.240.0110.00316.91
8.2.230.0170.00618.04
8.2.220.0150.00421.76
8.2.210.0160.00318.99
8.2.200.0170.00616.96
8.2.190.0220.00516.61
8.2.180.0230.00818.56
8.2.170.0180.00819.18
8.2.160.0180.00719.93
8.2.150.0170.00719.38
8.2.140.0160.00820.17
8.2.130.0170.00820.19
8.2.120.0160.00819.42
8.2.110.0150.00819.43
8.2.100.0160.00819.39
8.2.90.0150.01119.19
8.2.80.0170.00619.46
8.2.70.0210.00619.14
8.2.60.0180.00719.20
8.2.50.0200.00719.36
8.2.40.0160.00819.14
8.2.30.0160.00719.15
8.2.20.0150.00919.10
8.2.10.0180.00719.13
8.2.00.0180.00719.12
8.1.340.0120.00817.80
8.1.330.0240.00916.57
8.1.320.0260.00716.23
8.1.310.0170.00716.43
8.1.300.0200.00616.27
8.1.290.0160.00419.82
8.1.280.0220.00619.94
8.1.270.0170.00621.30
8.1.260.0160.00621.23
8.1.250.0160.00821.31
8.1.240.0170.00718.92
8.1.230.0170.00818.89
8.1.220.0170.00719.10
8.1.210.0170.00818.89
8.1.200.0160.00818.96
8.1.190.0170.00818.92
8.1.180.0170.00918.86
8.1.170.0170.00719.03
8.1.160.0180.00718.92
8.1.150.0140.01019.01
8.1.140.0150.01119.01
8.1.130.0170.00818.99
8.1.120.0180.00818.96
8.1.110.0160.00818.93
8.1.100.0140.00719.79
8.1.90.0140.00918.96
8.1.80.0170.00819.76
8.1.70.0170.00519.04
8.1.60.0140.00919.04
8.1.50.0170.00818.99
8.1.40.0180.00819.04
8.1.30.0140.00919.17
8.1.20.0130.00819.80
8.1.10.0150.00819.01
8.1.00.0160.00618.91

preferences:
62.68 ms | 981 KiB | 5 Q