3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { private $id; } public function createDog: Dog { return new Dog(); }

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.0070.06720.20
5.6.160.0100.08720.54
5.6.150.0100.06018.18
5.6.140.0100.07718.15
5.6.130.0030.04718.17
5.6.120.0100.07721.03
5.6.110.0030.07721.13
5.6.100.0100.07720.98
5.6.90.0170.03320.93
5.6.80.0170.07020.38
5.5.300.0070.05018.08
5.5.290.0030.07717.96
5.5.280.0100.07020.87
5.5.270.0070.05020.64
5.5.260.0200.06720.63
5.5.250.0070.04720.70
5.5.240.0200.06320.25

preferences:
139.26 ms | 1394 KiB | 7 Q