3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { use GetPrivates; private $foo =2; } trait GetPrivates { public function __call($name, $arg) { return function() {} } } var_dump((new A)->get());

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.0370.07320.21
7.0.10.0100.04020.30
7.0.00.0130.07020.22
5.6.170.0370.06720.56
5.6.160.0070.06320.57
5.6.150.0170.07318.17
5.6.140.0130.07718.19
5.6.130.0030.04318.17
5.6.120.0170.07320.98
5.6.110.0030.04321.12
5.6.100.0100.07021.05
5.6.90.0130.07721.11
5.6.80.0070.08720.43
5.5.310.0170.08320.25
5.5.300.0130.04317.94
5.5.290.0100.07717.95
5.5.280.0230.06720.66
5.5.270.0070.09020.88
5.5.260.0030.08720.88
5.5.250.0070.06320.69
5.5.240.4130.04020.24

preferences:
142.08 ms | 1394 KiB | 7 Q