3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Itesti { public function hello(); } class testi { public function test(Itesti $temp) { $temp->hello(); } } $temp = new testi(); try { $temp->test(new class implements Itesti{ public function hello() { throw new Exception("NOOOOU"); } }); } catch (Exception ex) { echo ex->getMessage(); }

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.03720.06
5.6.160.0130.05320.55
5.6.150.0130.07018.17
5.6.140.0030.04318.12
5.6.130.0030.10018.17
5.6.120.0100.08321.12
5.6.110.0130.07721.00
5.6.100.0030.05721.11
5.6.90.0200.06321.12
5.6.80.0100.06320.41
5.5.300.0070.04317.92
5.5.290.0100.08018.03
5.5.280.0130.07320.90
5.5.270.0030.09020.95
5.5.260.0100.08320.68
5.5.250.0030.04020.45
5.5.240.0330.07020.34

preferences:
143.53 ms | 1386 KiB | 7 Q