3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new Datetime(); $p = DateInterval::createFromDateString('-45 hours'); $a->add($p; echo $a->format('Y-m-d');

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.20.0370.07320.07
7.0.10.0070.06320.21
7.0.00.0030.07320.09
5.6.170.0130.05320.55
5.6.160.0070.04720.54
5.6.150.0070.03718.16
5.6.140.0070.08318.12
5.6.130.0100.05318.15
5.6.120.0030.04320.99
5.6.110.0130.07020.98
5.6.100.0030.04021.09
5.6.90.0200.05320.93
5.6.80.0030.04020.50
5.5.310.0330.07020.26
5.5.300.0200.07017.93
5.5.290.0200.07017.98
5.5.280.0100.07720.87
5.5.270.0030.08720.79
5.5.260.0100.06020.73
5.5.250.0100.08020.77
5.5.240.0130.05020.18

preferences:
148.91 ms | 1394 KiB | 7 Q