3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $_b = 'protected'; private $_c = 'private'; } $method = function (){ $this = new stdClass; var_dump($this->_b, $this->_c);}; $a = new A; $method = $method->bindTo($a); $method();

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.0070.07316.44
5.4.20.0030.03716.27
5.4.10.0070.04016.44
5.4.00.0130.05315.95
5.3.130.0030.06014.60
5.3.120.0070.04314.69
5.3.110.0100.03314.46
5.3.100.0030.06714.04
5.3.90.0130.05314.04
5.3.80.0070.06013.93
5.3.70.0030.04714.03
5.3.60.0100.05714.05
5.3.50.0100.03713.96
5.3.40.0030.03714.00
5.3.30.0070.07013.95
5.3.20.0130.04713.69
5.3.10.0070.03313.66
5.3.00.0030.05713.60

preferences:
135.9 ms | 1394 KiB | 7 Q