3v4l.org

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

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.0030.07016.50
5.4.20.0100.03716.40
5.4.10.0130.05316.27
5.4.00.0070.07715.80
5.3.130.0170.05314.59
5.3.120.0070.05314.54
5.3.110.0070.07014.55
5.3.100.0130.07014.07
5.3.90.0070.06013.94
5.3.80.0100.07314.07
5.3.70.0070.07314.02
5.3.60.0070.05014.07
5.3.50.0030.04313.90
5.3.40.0030.04313.90
5.3.30.0030.04713.91
5.3.20.0070.05313.64
5.3.10.0100.03013.65
5.3.00.0070.04313.55

preferences:
138.49 ms | 1386 KiB | 7 Q