3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface BarInterface { } interface FooInterface { public function getBar(): BarInterface; } class Foo implements FooInterface { public function getBar: BarInterface() { return null; } } $foo = new Foo(); $foo->getBar();

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.1.70.0100.01016.94
7.1.60.0310.01235.06
7.1.50.0280.01634.86
7.1.40.0320.01734.27
7.1.30.0130.02034.39
7.1.20.0290.01434.37
7.1.10.0080.01216.31
7.1.00.0090.00916.46
7.0.200.0160.00316.58
7.0.190.0070.01416.56
7.0.180.0120.00816.01
7.0.170.0080.00916.09
7.0.160.0120.00916.03
7.0.150.0090.01216.13
7.0.140.0030.01716.11
7.0.130.0060.01016.23
7.0.120.0000.01416.23
7.0.110.0020.01816.07
7.0.100.0040.01516.14
7.0.90.0060.01315.99
7.0.80.0060.00915.94
7.0.70.0060.01016.12
7.0.60.0070.01315.86
7.0.50.0120.00616.09
7.0.40.0060.01516.25
7.0.30.0060.01316.36
7.0.20.0050.01116.15
7.0.10.0060.00916.39
7.0.00.0110.00916.39

preferences:
141.35 ms | 1394 KiB | 7 Q