3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $_b = 'protected'; private $_c = 'private'; } $method = function (){ var_dump($this->_b, $this->_c);}; $a = new A; $a->newMethod = $method->bindTo($a, 'A'); {$a->newMethod}(); var_dump($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)
5.4.30.0170.04311.98
5.4.20.0150.04711.98
5.4.10.0180.04311.98
5.4.00.0190.04011.47
5.3.130.0160.05112.66
5.3.120.0230.06012.65
5.3.110.0210.04812.65
5.3.100.0170.05012.12
5.3.90.0160.04512.10
5.3.80.0180.04612.08
5.3.70.0200.04412.08
5.3.60.0230.05812.07
5.3.50.0200.04412.01
5.3.40.0220.04512.02
5.3.30.0240.05711.98
5.3.20.0200.05811.76
5.3.10.0210.04011.73
5.3.00.0200.06111.71

preferences:
138.97 ms | 1394 KiB | 7 Q