3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $lol = null; public function test() { return $this->lol:?'hi'; } } $foo = new foo(); var_dump($foo->test());

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.0200.07320.24
7.0.10.0070.04020.10
7.0.00.0070.05020.06
5.6.170.0270.07320.62
5.6.160.0030.08020.52
5.6.150.0030.04318.23
5.6.140.0030.08318.27
5.6.130.0070.05318.14
5.6.120.0070.08721.01
5.6.110.0070.04721.00
5.6.100.0030.08321.00
5.6.90.0170.06721.01
5.6.80.0130.07720.53
5.5.310.0200.03720.33
5.5.300.0200.06318.07
5.5.290.0030.04318.02
5.5.280.0000.09020.77
5.5.270.0030.05320.95
5.5.260.0100.06020.73
5.5.250.0030.06320.71
5.5.240.0130.03720.18

preferences:
137.83 ms | 1398 KiB | 7 Q