3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("dec 2015", "january 2015", "jan 2015", "2 jan 2015"); var_dump(array_map(function($v) { return new DateTime($v)->getDay(); }, $a));

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.0330.08020.07
7.0.10.0200.07320.08
7.0.00.0070.08320.23
5.6.170.0130.04320.47
5.6.160.0170.07320.61
5.6.150.0030.05718.15
5.6.140.0100.08018.15
5.6.130.0070.03718.12
5.6.120.0070.05021.15
5.6.110.0170.04721.14
5.6.100.0030.04721.04
5.6.90.0030.09321.10
5.6.80.0130.07320.38
5.5.310.0230.08020.25
5.5.300.0070.07317.97
5.5.290.0100.06017.95
5.5.280.0070.04020.88
5.5.270.0100.05720.87
5.5.260.0070.07020.88
5.5.250.0070.08320.50
5.5.240.0000.08320.23

preferences:
142.78 ms | 1394 KiB | 7 Q