3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); var_dump $date; $date2 = \DateTime::createFromFormat('U'$date->format('U')); var_dump($date2);

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.0030.05320.23
5.6.160.0170.07720.50
5.6.150.0070.05018.16
5.6.140.0100.07718.12
5.6.130.0100.08018.11
5.6.120.0130.05720.96
5.6.110.0070.08721.00
5.6.100.0000.04321.12
5.6.90.0130.07720.96
5.6.80.0070.05720.38
5.5.300.0070.03717.96
5.5.290.0070.03717.94
5.5.280.0070.08020.76
5.5.270.0170.07320.76
5.5.260.0030.08720.75
5.5.250.0070.07720.48
5.5.240.3770.03720.23

preferences:
141.1 ms | 1394 KiB | 7 Q