3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CommandInterface {} abstract class AbstractCommand implements CommandInterface {} interface PrefixableCommandInterface { abstract class PrefixableCommand extends AbstractCommand implements PrefixableCommandInterface { } class StringSet extends PrefixableCommand {} interface ConnectionInterface {} class Connection implements ConnectionInterface { public function executeCommand(CommandInterface $command) { echo 'foo connection'; } } class Tester { private $connection; public function __construct() { $this->connection = new Connection(); } public function executeCommand(CommandInterface $command) { $this->connection->executeCommand($command); } } $t = new Tester(); $t->executeCommand(new StringSet);

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.4.200.0060.04212.37
5.4.190.0110.04312.37
5.4.180.0090.03912.37
5.4.170.0100.03812.38
5.4.160.0090.03812.37
5.4.150.0080.04112.37
5.4.140.0140.04512.06
5.4.130.0080.04012.04
5.4.120.0160.04112.00
5.4.110.0100.03712.00
5.4.100.0090.04112.00
5.4.90.0120.04912.00
5.4.80.0130.04412.00
5.4.70.0120.04112.00
5.4.60.0090.04012.00
5.4.50.0150.05612.00
5.4.40.0120.03711.98
5.4.30.0110.03611.98
5.4.20.0100.03711.98
5.4.10.0130.04011.98
5.4.00.0100.04211.47
5.3.270.0120.04012.72
5.3.260.0100.04512.72
5.3.250.0090.04712.72
5.3.240.0120.04312.72
5.3.230.0140.05212.71
5.3.220.0110.05012.68
5.3.210.0100.04512.68
5.3.200.0100.04112.68
5.3.190.0120.03812.68
5.3.180.0120.03812.67
5.3.170.0140.05112.67
5.3.160.0090.04112.67
5.3.150.0130.04312.67
5.3.140.0100.04412.66
5.3.130.0100.04612.66
5.3.120.0150.04112.66
5.3.110.0110.04412.66
5.3.100.0100.04212.12
5.3.90.0110.04012.08
5.3.80.0150.03712.07
5.3.70.0110.04112.08
5.3.60.0150.05412.06
5.3.50.0110.03912.00
5.3.40.0090.04312.00
5.3.30.0120.03711.95
5.3.20.0100.04111.73
5.3.10.0080.04311.69
5.3.00.0090.03911.68

preferences:
144.4 ms | 1394 KiB | 7 Q