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, get_class($this);}; $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.0000.06016.64
5.4.20.0100.07316.38
5.4.10.0030.07716.43
5.4.00.0200.02715.79
5.3.130.0030.05314.57
5.3.120.0070.06314.54
5.3.110.0100.07714.55
5.3.100.0070.04714.05
5.3.90.0030.04314.11
5.3.80.0000.04714.02
5.3.70.0030.07314.07
5.3.60.0130.06714.03
5.3.50.0030.03714.03
5.3.40.0070.05013.95
5.3.30.0130.05013.96
5.3.20.0100.06713.73
5.3.10.0070.07013.71
5.3.00.0100.04713.54

preferences:
141.02 ms | 1398 KiB | 7 Q