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 {} class Tester { public function executeCommand(CommandInterface $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.5.40.0070.03317.22
5.5.30.0000.04017.21
5.5.20.0030.03717.27
5.5.10.0030.03717.27
5.5.00.0070.03317.18
5.4.200.0000.04719.09
5.4.190.0030.04719.06
5.4.180.0030.03719.00
5.4.170.0030.03718.94
5.4.160.0000.04019.01
5.4.150.0030.03718.98
5.4.140.0030.03316.23
5.4.130.0000.03716.29
5.4.120.0000.03716.32
5.4.110.0070.03016.38
5.4.100.0030.04316.33
5.4.90.0000.03716.43
5.4.80.0070.03016.32
5.4.70.0000.03716.57
5.4.60.0030.04016.45
5.4.50.0070.03316.38
5.4.40.0030.03316.50
5.4.30.0030.03316.43
5.4.20.0070.03716.41
5.4.10.0030.03316.28
5.4.00.0100.03015.66
5.3.270.0030.05014.64
5.3.260.0030.04314.63
5.3.250.0030.04014.81
5.3.240.0070.03314.70
5.3.230.0030.03714.69
5.3.220.0030.03714.59
5.3.210.0130.02714.56
5.3.200.0000.03714.59
5.3.190.0000.04014.52
5.3.180.0000.03714.51
5.3.170.0100.03014.55
5.3.160.0070.03314.52
5.3.150.0000.05714.63
5.3.140.0100.03714.52
5.3.130.0100.04314.57
5.3.120.0070.04014.57
5.3.110.0030.04314.59
5.3.100.0030.03714.05
5.3.90.0030.03714.08
5.3.80.0030.07314.01
5.3.70.0070.06314.07
5.3.60.0130.06313.89
5.3.50.0030.05314.02
5.3.40.0000.04713.94
5.3.30.0100.07014.00
5.3.20.0070.04313.68
5.3.10.0000.05013.69
5.3.00.0030.07313.52

preferences:
141.93 ms | 1394 KiB | 7 Q