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(); $temp->test(new class implements Itesti{ public function hello() { echo "TERVE!!!"; } })

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.08720.08
5.6.160.0100.07020.52
5.6.150.0070.04018.29
5.6.140.0000.05018.18
5.6.130.0100.07318.28
5.6.120.0000.04721.09
5.6.110.0030.08721.11
5.6.100.0070.04021.09
5.6.90.0070.08021.13
5.6.80.0070.06020.44
5.5.300.0030.04017.95
5.5.290.0030.04017.96
5.5.280.0030.05320.98
5.5.270.0000.04320.76
5.5.260.0000.05320.79
5.5.250.0000.06720.79
5.5.240.0230.03320.15

preferences:
139.23 ms | 1394 KiB | 7 Q