3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() { } } class FooSubclass extends Foo { public function bar(array $data=null) { } }
based on WaXZk

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0070.00716.77
7.2.00.0030.00919.28
7.1.200.0040.00715.59
7.1.100.0060.01018.09
7.1.70.0040.00416.96
7.1.60.0070.01719.50
7.1.50.0130.01016.90
7.1.00.0100.07022.44
7.0.200.0140.01114.37
7.0.140.0030.07322.16
7.0.60.0070.03719.89
7.0.50.0070.07317.85
7.0.40.0100.08020.25
7.0.30.0330.07320.14
7.0.20.0230.06020.30
7.0.10.0430.06320.22
7.0.00.0100.08320.09
5.6.280.0000.07721.08
5.6.210.0030.08720.75
5.6.200.0200.07318.19
5.6.190.0000.05020.57
5.6.180.0170.04020.31
5.6.170.0370.06320.71
5.6.160.0030.04320.48
5.6.150.0100.04718.29
5.6.140.0100.07318.25
5.6.130.0070.08718.16
5.6.120.0100.06720.99
5.6.110.0130.07320.98
5.6.100.0070.08020.97
5.6.90.0130.08721.12
5.6.80.0130.09020.38
5.6.70.0300.06720.37
5.5.350.0270.07320.47
5.5.340.0000.04317.94
5.5.330.0000.04320.19
5.5.320.0070.06020.43
5.5.310.0270.04720.27
5.5.300.0070.05718.09
5.5.290.0070.07317.95
5.5.280.0230.05320.68
5.5.270.0130.05020.66
5.5.260.0030.06720.88
5.5.250.0070.08720.55
5.5.240.0030.04720.12
5.4.450.0130.06319.16
5.4.440.1030.07319.34
5.4.430.0770.05319.40
5.4.420.0170.05019.61
5.4.410.0170.04719.02
5.4.400.0300.05718.55
5.4.390.0170.06318.49
5.4.380.0270.05718.59
5.4.370.0400.04718.76
5.4.360.0300.04718.61
5.4.350.0370.05318.72
5.4.340.0430.04318.71
5.4.320.0370.07718.71
5.4.310.0400.06318.55
5.4.300.0330.07018.85
5.4.290.0330.05318.52
5.4.280.0400.05018.51
5.4.270.0370.06018.79
5.4.260.0230.06018.80
5.4.250.0200.06318.82
5.4.240.0370.04718.58
5.4.230.0300.05318.68
5.4.220.0300.05318.76
5.4.210.0370.05318.54
5.4.200.0270.05316.63
5.4.190.0330.05718.55
5.4.180.0370.05318.70
5.4.170.0330.06018.77
5.4.160.0530.06318.81
5.4.150.0430.06018.72
5.4.140.0500.04316.28
5.4.130.0400.04716.45
5.4.120.0270.05316.34
5.4.110.0270.05316.29
5.4.100.0570.07016.46
5.4.90.0670.06716.46
5.4.80.0430.06316.33
5.4.70.0400.04716.20
5.4.60.0300.04716.21
5.4.50.0270.05016.38
5.4.40.0770.05316.25
5.4.30.0330.05716.19
5.4.20.0400.05716.17
5.4.10.0400.04716.24
5.4.00.0500.03715.78
5.3.290.0300.06314.66
5.3.280.0400.06314.62
5.3.270.0430.06714.82
5.3.260.0630.06014.73
5.3.250.0670.06314.79
5.3.240.0470.05714.58
5.3.230.0530.06314.61
5.3.220.0630.06714.61
5.3.210.0570.06314.62
5.3.200.0330.05314.75
5.3.190.0500.06714.57
5.3.180.0530.06314.69
5.3.170.0470.07014.78
5.3.160.0470.07314.73
5.3.150.0430.05714.66
5.3.140.0370.04714.69
5.3.130.0530.06014.63
5.3.120.0400.07014.65
5.3.110.0500.07014.56
5.3.100.0330.05314.09
5.3.90.0370.06014.02
5.3.80.0400.07314.14
5.3.70.0470.07014.14
5.3.60.0530.07014.13
5.3.50.0430.06314.06
5.3.40.0430.06714.00
5.3.30.0470.05314.01
5.3.20.0330.06013.71
5.3.10.0370.04713.70
5.3.00.0430.06713.70
5.2.170.0270.04311.23
5.2.160.0200.04311.20
5.2.150.0270.05711.27
5.2.140.0570.04711.13
5.2.130.0270.04311.14
5.2.120.0370.03711.21
5.2.110.0230.04311.17
5.2.100.0200.04311.18
5.2.90.0470.03311.30
5.2.80.0200.05011.17
5.2.70.0470.05011.20
5.2.60.0370.04311.18
5.2.50.0300.04311.25
5.2.40.0300.05011.00
5.2.30.0270.05310.99
5.2.20.0230.05710.98
5.2.10.0330.05310.91
5.2.00.0270.04310.91
5.1.60.0230.03710.04
5.1.50.0200.03310.03
5.1.40.0300.04010.10
5.1.30.0270.03710.36
5.1.20.0300.04310.40
5.1.10.0270.04010.20
5.1.00.0130.04310.11
5.0.50.0170.0278.65
5.0.40.0070.0338.55
5.0.30.0100.0478.36
5.0.20.0200.0238.23
5.0.10.0130.0278.20
5.0.00.0100.0438.29
4.4.90.0070.0276.00
4.4.80.0170.0175.96
4.4.70.0100.0235.88
4.4.60.0130.0205.98
4.4.50.0070.0275.88
4.4.40.0100.0375.87
4.4.30.0070.0236.00
4.4.20.0170.0175.95
4.4.10.0130.0235.97
4.4.00.0100.0375.91
4.3.110.0100.0305.80
4.3.100.0170.0175.80
4.3.90.0200.0275.79
4.3.80.0130.0435.89
4.3.70.0230.0175.82
4.3.60.0070.0235.82
4.3.50.0130.0235.80
4.3.40.0230.0335.75
4.3.30.0070.0274.59
4.3.20.0200.0274.53
4.3.10.0030.0334.51
4.3.00.0100.0206.90