3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class foo { abstract public function &bar(): string; } class herp extends foo { public string $member = 'derp'; public function bar(): string { return $this->member; } }

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.20.0370.06720.33
7.0.10.0100.05020.09
7.0.00.0030.04320.23
5.6.170.0170.07320.45
5.6.160.0100.06720.55
5.6.150.0100.08018.15
5.6.140.0100.03318.15
5.6.130.0070.06318.18
5.6.120.0070.06721.10
5.6.110.0130.07320.98
5.6.100.0130.07321.14
5.6.90.0130.07021.04
5.6.80.0200.06020.38
5.5.310.0230.05320.30
5.5.300.0030.04018.04
5.5.290.0100.07717.92
5.5.280.0130.08020.88
5.5.270.0100.06720.97
5.5.260.0130.03320.89
5.5.250.0130.07020.79
5.5.240.0270.07020.29

preferences:
141.06 ms | 1394 KiB | 7 Q