3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { private $id; } 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.0130.06720.05
5.6.160.0030.05320.59
5.6.150.0070.04718.15
5.6.140.0100.03718.18
5.6.130.0130.08018.18
5.6.120.0130.08020.94
5.6.110.0070.07721.12
5.6.100.0130.08021.00
5.6.90.0070.08720.88
5.6.80.0100.07720.51
5.5.300.0070.05317.98
5.5.290.0130.07317.96
5.5.280.0030.07020.90
5.5.270.0070.08720.89
5.5.260.0100.08320.65
5.5.250.0070.08020.50
5.5.240.0200.05020.26

preferences:
137.27 ms | 1394 KiB | 7 Q