3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { abstract function bar(array $params = NULL); } class Moo extends Foo { public function bar(array $params){ echo count($params); } } $c = new Moo(); $c->bar(array(5));

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.170.0070.06719.11
5.4.160.0070.07019.23
5.4.150.0100.06719.15
5.4.140.0200.04716.60
5.4.130.0030.04316.38
5.4.120.0070.03716.40
5.4.110.0070.04316.45
5.4.100.0030.05316.46
5.4.90.0030.05016.59
5.4.80.0070.07316.49
5.4.70.0000.04316.57
5.4.60.0030.05016.38
5.4.50.0070.03716.44
5.4.40.0100.07016.46
5.4.30.0030.03716.36
5.4.20.0030.04716.36
5.4.10.0030.08316.40
5.4.00.0070.07315.94
5.3.270.0170.06714.66
5.3.260.0100.07714.76
5.3.250.0130.07014.64
5.3.240.0030.05314.53
5.3.230.0000.05314.61
5.3.220.0070.05014.58
5.3.210.0100.04714.62
5.3.200.0030.06014.64
5.3.190.0100.07714.72
5.3.180.0070.07014.60
5.3.170.0070.08014.56
5.3.160.0070.07314.59
5.3.150.0030.04314.45
5.3.140.0100.04314.71
5.3.130.0100.07714.59
5.3.120.0030.05014.64
5.3.110.0070.04314.62
5.3.100.0170.07013.93
5.3.90.0100.03714.05
5.3.80.0030.07713.94
5.3.70.0100.05714.09
5.3.60.0100.07014.06
5.3.50.0100.07313.87
5.3.40.0070.06313.84
5.3.30.0100.05013.93
5.3.20.0100.06013.75
5.3.10.0030.07313.61
5.3.00.0030.05013.70

preferences:
141.16 ms | 1394 KiB | 7 Q