3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new Datetime(); $a->add(new \DateInterval('PT'.45.'H')); 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.0270.07720.09
7.0.10.0000.05020.26
7.0.00.0030.07020.16
5.6.170.0330.05320.51
5.6.160.0100.08720.56
5.6.150.0000.04018.28
5.6.140.0000.04718.18
5.6.130.0130.04718.28
5.6.120.0000.06321.12
5.6.110.0130.07721.11
5.6.100.0030.04021.13
5.6.90.0070.06320.97
5.6.80.0030.03720.53
5.5.310.0300.06020.24
5.5.300.0030.07718.01
5.5.290.0070.07017.98
5.5.280.0030.04320.77
5.5.270.0030.04720.87
5.5.260.0100.08020.71
5.5.250.0000.04320.61
5.5.240.0070.05720.18

preferences:
136.11 ms | 1394 KiB | 7 Q