3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IFoo { public function bar(); } class Foo { public function bar() { echo 'hier'; } } clas FooAdapter implements IFoo { protected $foo; public function __construct() { $this->foo = new Foo(); } public function bar() { $this->foo->bar(); } } $foo = new FooAdapter(); $foo->bar();

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)
5.5.00.0000.04017.19
5.4.160.0070.03319.11
5.4.150.0130.07319.10
5.4.140.0030.08016.44
5.4.130.0030.07316.43
5.4.120.0230.06316.45
5.4.110.0070.06016.50
5.4.100.0100.07016.55
5.4.90.0000.05016.30
5.4.80.0030.07316.45
5.4.70.0070.07016.35
5.4.60.0100.07316.43
5.4.50.0000.05016.59
5.4.40.0070.05716.32
5.4.30.0030.06316.56
5.4.20.0030.07716.35
5.4.10.0100.07316.40
5.4.00.0030.06015.74
5.3.260.0030.07314.56
5.3.250.0030.05314.55
5.3.240.0100.07314.56
5.3.230.0030.08014.61
5.3.220.0070.07014.61
5.3.210.0070.07714.42
5.3.200.0130.07014.62
5.3.190.0030.06014.64
5.3.180.0030.07714.62
5.3.170.0130.07314.60
5.3.160.0030.07314.55
5.3.150.0070.05014.60
5.3.140.0070.08014.78
5.3.130.0100.07314.57
5.3.120.0000.07314.57
5.3.110.0100.03314.58
5.3.100.0030.04714.06
5.3.90.0000.06014.05
5.3.80.0100.06713.91
5.3.70.0030.07713.91
5.3.60.0070.07713.84
5.3.50.0100.06713.97
5.3.40.0070.07713.93
5.3.30.0070.05714.13
5.3.20.0200.04013.76
5.3.10.0130.06713.56
5.3.00.0070.07013.73

preferences:
140.31 ms | 1394 KiB | 7 Q