3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Command {} interface ITest { public function handle($command); } class CTest implements ITest { public function handle(Command $command); }

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.20.0200.05320.21
7.0.10.0000.04720.02
7.0.00.0030.05320.25
5.6.170.0230.08020.39
5.6.160.0030.09020.57
5.6.150.0030.06018.16
5.6.140.0070.08018.12
5.6.130.0100.08018.23
5.6.120.0030.07320.99
5.6.110.0070.08720.95
5.6.100.0130.07320.98
5.6.90.0030.07720.97
5.6.80.0100.07720.37
5.5.310.0230.04320.34
5.5.300.0070.05717.94
5.5.290.0130.05018.07
5.5.280.0030.07720.90
5.5.270.0170.06320.64
5.5.260.0200.07320.89
5.5.250.0200.05020.62
5.5.240.0370.06720.16

preferences:
140.57 ms | 1394 KiB | 7 Q