3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('2021-11-25T16:46:15+0200'); var_dump($dt->format('Y-m-d H:i:s')); $dt->setTimeZone(new DateTimeZone('UTC')); var_dump($dt->format('Y-m-d H:i:s')); $dt->setTimeZone(new DateTimeZone('-0600')); var_dump($dt->format('Y-m-d H:i:s')); $dt->setTimeZone(new DateTimeZone('UTC')); var_dump($dt->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.1.20.0000.00717.65
8.1.10.0080.00017.52
8.1.00.0030.00617.66
8.0.140.0040.00416.91
8.0.130.0090.00416.98
8.0.120.0160.00216.93
8.0.110.0120.00617.05
8.0.100.0150.00417.04
8.0.90.0070.01116.93
8.0.80.0190.00017.03
8.0.70.0160.00316.98
8.0.60.0070.01017.05
8.0.50.0090.00916.84
8.0.30.0140.00416.84
8.0.20.0180.00417.04
8.0.10.0130.00417.02
8.0.00.0100.00017.04
7.4.270.0000.00716.70
7.4.260.0030.00716.66
7.4.250.0130.00916.64
7.4.240.0170.00316.61
7.4.230.0230.00016.44
7.4.220.0150.00416.62
7.4.210.0170.00016.64
7.4.200.0170.00016.65
7.4.190.0150.00316.68
7.4.180.0060.01316.68
7.4.160.0120.00616.60
7.4.150.0160.00316.54
7.4.140.0120.00616.33
7.4.130.0060.01216.46
7.4.120.0130.00716.45
7.4.110.0130.00716.45
7.4.100.0140.00616.65
7.4.90.0180.00016.38
7.4.80.0180.00016.46
7.4.70.0120.00616.46
7.4.60.0110.00616.46
7.4.50.0180.00016.38
7.4.40.0120.00516.38
7.4.30.0120.00616.46
7.4.20.0110.00616.52
7.4.10.0110.00716.36
7.4.00.0130.00416.36
7.3.330.0090.00916.38
7.3.320.0110.00716.42
7.3.310.0200.00016.41
7.3.300.0170.00316.16
7.3.290.0130.00516.47
7.3.280.0200.00016.42
7.3.270.0140.00616.11
7.3.260.0120.00616.25
7.3.250.0130.00516.17
7.3.240.0150.00416.36
7.3.230.0120.00816.38
7.3.220.0180.00016.02
7.3.210.0140.00516.13
7.3.200.0190.00016.33
7.3.190.0130.00316.35
7.3.180.0070.00716.33
7.3.170.0160.00316.15
7.3.160.0140.00416.14
7.3.150.0130.00616.35
7.3.140.0160.00316.32
7.3.130.0150.00516.29
7.3.120.0150.00216.29
7.3.110.0170.00016.02
7.3.100.0090.00516.27
7.3.90.0080.00516.51
7.3.80.0090.00516.27
7.3.70.0070.00716.16
7.3.60.0120.00016.42
7.3.50.0080.00416.29
7.3.40.0000.01516.19
7.3.30.0150.00016.55
7.3.20.0130.00018.25
7.3.10.0080.00518.04
7.3.00.0130.00017.95

preferences:
17.02 ms | 455 KiB | 5 Q