3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = [['a' => 'func']]; function func(){echo 'yay';} public function __construct() { foreach ($this->a as $a) {$this->$a}['a'](); } } new A;

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.10.0030.05020.30
7.0.00.0100.08320.23
5.6.160.0100.04020.54
5.6.150.0070.05718.19
5.6.140.0170.06318.18
5.6.130.0070.05318.15
5.6.120.0070.08720.95
5.6.110.0100.08021.05
5.6.100.0100.04021.05
5.6.90.0000.05720.98
5.6.80.0100.06320.38
5.5.300.0070.07718.03
5.5.290.0070.08017.97
5.5.280.0030.04320.88
5.5.270.0070.03720.87
5.5.260.0100.07020.73
5.5.250.0030.07020.54
5.5.240.0170.07320.23

preferences:
126.41 ms | 1398 KiB | 7 Q