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.0100.06720.30
5.6.160.0100.04720.62
5.6.150.0070.08318.18
5.6.140.0030.04318.24
5.6.130.0030.09018.24
5.6.120.0170.06321.03
5.6.110.0170.06020.93
5.6.100.0070.08720.90
5.6.90.0100.07720.99
5.6.80.0000.05320.37
5.5.300.0030.04317.98
5.5.290.0100.07717.97
5.5.280.0070.08020.99
5.5.270.0130.08020.80
5.5.260.0130.07020.77
5.5.250.0070.08020.60
5.5.240.0200.07720.17

preferences:
143.06 ms | 1394 KiB | 7 Q