3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { public function self foo(); } class B implements A { public function A foo() { return $this; } }

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.10.0030.04720.19
7.0.00.0030.04320.11
5.6.160.0100.08020.39
5.6.150.0070.07018.29
5.6.140.0130.08018.14
5.6.130.0070.08718.19
5.6.120.0000.04320.97
5.6.110.0170.03021.02
5.6.100.0100.08321.01
5.6.90.0270.06721.10
5.6.80.0030.04020.36
5.5.300.0100.08017.95
5.5.290.0100.05017.98
5.5.280.0030.04320.77
5.5.270.0000.05720.95
5.5.260.0070.04020.84
5.5.250.0230.07320.78
5.5.240.0070.03320.04

preferences:
141.41 ms | 1394 KiB | 7 Q