3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo(int &$e) { try { throw new \Exception(); } catch (\Exception $e) { } } } $foo = new Foo(); $a = 1; $foo->doFoo($a); var_dump($a);

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)
8.5.30.0260.00716.69
8.4.180.0050.00621.59
8.4.90.0050.00419.91
8.3.180.0060.01318.60
8.3.50.0060.00318.54

preferences:
41.48 ms | 510 KiB | 5 Q