3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 1730597400 = 01:30:00 according to UTC $date = DateTime::createFromFormat('U', '1730597400'); var_dump($date); // 01:30:00 of UTC // 1730597400 = 21:30:00 according to America/Toronto $date = DateTime::createFromFormat('U e', '1730597400 America/Toronto'); var_dump($date); // 21:30:00 of America/Toronto // 1730597400 = 01:30:00 according to UTC $date = DateTime::createFromFormat('U', '1730597400'); $date->setTimezone(new DateTimeZone('America/Toronto')); var_dump($date); // 21:30:00 of America/Toronto

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.130.0050.00316.58
8.3.120.0060.01316.70
8.3.110.0440.00016.68
8.3.100.0430.00416.66
8.3.90.0310.00616.74
8.3.80.0170.00716.35
8.3.70.0340.00316.27
8.3.60.0340.00916.73
8.3.50.0230.00016.59
8.3.40.0110.00917.52
8.3.30.0310.00017.26
8.3.20.0160.00417.66
8.3.10.0240.01417.47
8.3.00.0230.00317.76
8.2.250.0140.00016.81
8.2.240.0400.00316.33
8.2.230.0220.01516.44
8.2.220.0340.00316.55
8.2.210.0210.00616.50
8.2.200.0300.00416.70
8.2.190.0270.00716.39
8.2.180.0330.00516.61
8.2.170.0340.00317.81
8.2.160.0280.00617.46
8.2.150.0370.00617.51
8.2.140.0320.01117.77
8.2.130.0250.01317.55
8.2.120.0380.00317.52
8.2.110.0340.00917.34
8.2.100.0370.00317.59
8.2.90.0360.00917.56
8.2.80.0340.01717.26
8.2.70.0300.00617.48
8.2.60.0240.01517.32
8.2.50.0340.00717.50
8.2.40.0190.01517.37
8.2.30.0360.00317.61
8.2.20.0280.00317.58
8.2.10.0230.00517.46
8.2.00.0200.00717.48
8.1.300.0290.01115.95
8.1.290.0300.01016.02
8.1.280.0270.01316.20
8.1.270.0310.01517.47
8.1.260.0330.01117.21
8.1.250.0190.00717.45
8.1.240.0170.00017.40
8.1.230.0280.00717.18
8.1.220.0220.01217.33
8.1.210.0260.01116.98
8.1.200.0250.01317.23
8.1.190.0180.00017.32
8.1.180.0180.00017.13
8.1.170.0230.01117.36
8.1.160.0230.01217.29
8.1.150.0290.00317.14
8.1.140.0260.01017.03
8.1.130.0270.01017.22
8.1.120.0280.01017.45
8.1.110.0300.00717.18
8.1.100.0280.00817.21
8.1.90.0280.01117.21
8.1.80.0380.01117.25
8.1.70.0380.01017.34
8.1.60.0360.00717.40
8.1.50.0190.01617.39
8.1.40.0330.00417.36
8.1.30.0340.00617.31
8.1.20.0360.00417.53
8.1.10.0290.01117.35
8.1.00.0350.01617.30

preferences:
30.63 ms | 403 KiB | 5 Q