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.0080.04011.99
5.4.20.0080.04211.99
5.4.10.0080.03711.99
5.4.00.0070.03811.48
5.3.130.0050.04312.66
5.3.120.0060.04212.66
5.3.110.0050.04012.66
5.3.100.0060.03712.12
5.3.90.0060.04012.09
5.3.80.0050.03712.08
5.3.70.0070.03612.08
5.3.60.0050.04212.07
5.3.50.0060.03612.01
5.3.40.0070.04012.01
5.3.30.0060.03711.96
5.3.20.0080.03611.75
5.3.10.0050.04011.71
5.3.00.0070.03611.70

preferences:
140.6 ms | 1394 KiB | 7 Q