3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ny_time = "06:59 pm"; $utc_time = strtotime("+5 hours", strtotime($ny_time)); echo date('h:i a', $utc_time); // output 05:30 am echo strtotime(07:00 pm); ?>

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)
7.0.10.0130.05020.10
7.0.00.0030.06720.06
5.6.160.0100.08020.46
5.6.150.0030.05018.16
5.6.140.0070.07718.15
5.6.130.0030.04318.28
5.6.120.0070.08020.98
5.6.110.0030.06021.11
5.6.100.0100.07320.99
5.6.90.0100.09021.09
5.6.80.0130.07720.35
5.5.300.0070.08018.03
5.5.290.0070.05717.96
5.5.280.0030.04020.82
5.5.270.0070.04020.64
5.5.260.0030.08720.83
5.5.250.0030.06320.58
5.5.240.0170.04020.25

preferences:
143.47 ms | 1398 KiB | 7 Q