3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public $call; public function __construct() { $this->call = function () { echo "x"; }; } public function call() { echo "y"; } } $object = new X; ${object->call}();

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)
7.0.00.0070.04320.13
5.6.160.0030.08720.57
5.6.150.0100.07718.18
5.6.140.0000.04318.27
5.6.130.0070.04018.16
5.6.120.0030.05021.00
5.6.110.0030.08720.92
5.6.100.0070.08721.15
5.6.90.0100.05320.96
5.6.80.0100.08020.42
5.5.300.0030.04717.96
5.5.290.0070.06718.07
5.5.280.0130.07020.97
5.5.270.0030.08020.98
5.5.260.0170.08320.65
5.5.250.0030.04020.68
5.5.240.0300.06720.26

preferences:
30.92 ms | 400 KiB | 5 Q