3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime('2015-05-24 00:00:00'); $time = new \DateTime('0000-00-00 21:22:00'); $pickUpDateTime = new \DateTime(); $pickUpDateTime->setDate($date->format('Y'), $date->format('m'), $date->format('d')); $pickUpDateTime->setTime($time->format('H'), $time->format('i'), $time->format('s')); $now = new DateTime("now"); echo $now $interval = date_diff($now, $pickUpDateTime); if ( $v = $interval->h >= 1 ) echo ($interval->d*24);

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.0070.04320.10
7.0.00.0070.09020.23
5.6.160.0130.06720.48
5.6.150.0100.07718.25
5.6.140.0070.05718.25
5.6.130.0030.07318.18
5.6.120.0070.06321.03
5.6.110.0100.07721.00
5.6.100.0230.07020.98
5.6.90.0030.08321.00
5.6.80.0130.07320.54
5.5.300.0070.07317.98
5.5.290.0070.07318.04
5.5.280.0100.04320.87
5.5.270.0070.04020.77
5.5.260.0070.08320.89
5.5.250.0100.08320.46
5.5.240.0200.07020.19

preferences:
135.06 ms | 1394 KiB | 7 Q