3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $callback; public function __construct() { $this->callback = function (Exception $e) { var_dump($e); } } public function test() { ($this->callback)($new Exception); } } (new Foo)->test();

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.09020.30
5.6.160.0030.09020.61
5.6.150.0030.08718.26
5.6.140.0000.04318.18
5.6.130.0070.06718.28
5.6.120.0170.06021.04
5.6.110.0100.07321.10
5.6.100.0100.05321.09
5.6.90.0000.09320.98
5.6.80.0030.07020.49
5.5.300.0000.08018.01
5.5.290.0030.08317.98
5.5.280.0030.08020.91
5.5.270.0030.04320.80
5.5.260.0070.04720.77
5.5.250.0100.06020.45
5.5.240.0130.08020.12

preferences:
141.53 ms | 1394 KiB | 7 Q