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.6.110.0100.07321.02
5.6.100.0100.04321.01
5.6.90.0170.07720.98
5.6.80.0200.02720.48
5.6.70.4070.03320.39
5.5.270.0130.05320.68
5.5.260.0070.08720.82
5.5.250.0200.03720.62
5.5.240.0300.06720.37
5.4.430.0570.06019.49
5.4.420.0730.05719.61
5.4.410.0770.04719.41
5.4.400.0830.04719.32
5.4.390.0570.06019.13
5.4.380.0730.05319.18
5.4.370.0700.05318.92
5.4.360.0830.05719.27
5.4.350.0800.05319.27
5.4.340.0800.05319.21
5.4.320.0730.06019.32
5.4.310.0900.05018.88
5.4.300.0770.06318.88
5.4.290.1000.05019.00
5.4.280.1070.04719.21
5.4.270.0700.05019.22
5.4.260.0630.05019.13
5.4.250.0600.05719.23
5.4.240.0730.04319.13
5.4.230.0600.05319.02
5.4.220.0600.06019.13
5.4.210.0570.06019.15
5.4.200.0630.05016.64
5.4.190.0800.05318.97
5.4.180.0670.05019.21
5.4.170.0570.06018.98
5.4.160.0670.04719.16
5.4.150.0730.06018.93
5.4.140.0600.05316.55
5.4.130.0800.06716.53
5.4.120.0630.05016.31
5.4.110.0700.04016.72
5.4.100.0600.05316.36
5.4.90.0530.05716.40
5.4.80.0630.04716.60
5.4.70.0700.05016.43
5.4.60.0770.05016.59
5.4.50.0930.04016.45
5.4.40.0630.05016.39
5.4.30.0570.05716.34
5.4.20.0670.04716.55
5.4.10.0600.05016.44
5.4.00.0700.05715.91
5.3.290.0630.05314.68
5.3.280.0630.05014.67
5.3.270.0870.06014.76
5.3.260.0770.04014.56
5.3.250.0600.05314.52
5.3.240.0770.06014.64
5.3.230.0670.05014.60
5.3.220.0700.04714.47
5.3.210.0870.05014.50
5.3.200.0830.05014.58
5.3.190.0770.06014.50
5.3.180.0830.05714.48
5.3.170.0870.04714.73
5.3.160.0800.05314.46
5.3.150.0800.05314.48
5.3.140.0970.06014.66
5.3.130.0870.05714.56
5.3.120.0830.05314.54
5.3.110.0800.05714.41
5.3.100.0900.04313.95
5.3.90.0630.05013.88
5.3.80.0630.05013.93
5.3.70.0600.05314.13
5.3.60.0830.04714.15
5.3.50.0970.05013.91
5.3.40.0670.04713.85
5.3.30.0800.05013.92
5.3.20.0700.05713.61
5.3.10.0670.04313.66
5.3.00.0570.05313.70
5.2.170.0500.04311.10
5.2.160.0470.04311.31
5.2.150.0530.03711.07
5.2.140.0500.04011.07
5.2.130.0570.03311.26
5.2.120.0470.04011.09
5.2.110.0470.04311.00
5.2.100.0500.04011.25
5.2.90.0400.05011.09
5.2.80.0470.04311.07
5.2.70.0530.04011.02
5.2.60.0500.04311.02
5.2.50.0500.04010.93
5.2.40.0470.03310.96
5.2.30.0470.03711.11
5.2.20.0600.03711.03
5.2.10.0470.03710.93
5.2.00.0600.03310.88
5.1.60.0530.0379.89
5.1.50.0400.03310.00
5.1.40.0430.03010.03
5.1.30.0530.03010.50
5.1.20.0500.04010.22
5.1.10.0400.0409.96
5.1.00.0430.0309.96
5.0.50.0170.0308.48
5.0.40.0200.0278.30
5.0.30.0230.0408.14
5.0.20.0230.0238.34
5.0.10.0200.0278.09
5.0.00.0300.0308.04
4.4.90.0170.0275.75
4.4.80.0200.0205.81
4.4.70.0170.0235.84
4.4.60.0230.0175.74
4.4.50.0230.0205.89
4.4.40.0170.0375.92
4.4.30.0200.0205.86
4.4.20.0170.0235.91
4.4.10.0300.0205.94
4.4.00.0230.0305.89
4.3.110.0170.0235.77
4.3.100.0200.0205.67
4.3.90.0230.0175.67
4.3.80.0200.0335.83
4.3.70.0200.0205.78
4.3.60.0200.0205.64
4.3.50.0200.0205.66
4.3.40.0170.0375.79
4.3.30.0100.0234.44
4.3.20.0100.0234.50
4.3.10.0100.0204.54
4.3.00.0070.0207.30

preferences:
145.11 ms | 1394 KiB | 7 Q