3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = time(); echo "Midnight of $d\n"; $date = new DateTime(); $date->setTimestamp($d); $date->setTime(0,0,0) echo $date;

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.00.0000.04720.22
5.6.160.0030.04320.47
5.6.150.0070.05318.13
5.6.140.0070.05018.27
5.6.130.0070.08018.14
5.6.120.0230.03721.15
5.6.110.0130.06321.11
5.6.100.0030.06021.04
5.6.90.0070.08320.97
5.6.80.0130.07320.37
5.5.300.0100.03717.99
5.5.290.0030.08318.09
5.5.280.0030.06720.76
5.5.270.0000.04720.79
5.5.260.0100.03720.79
5.5.250.0030.05320.68
5.5.240.0170.08720.27

preferences:
143 ms | 1394 KiB | 7 Q