3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { public function api() { } } class b extends a { public function api() { $argv = func_get_args(); return call_user_func_array( array( 'a', 'api' ), $argv ); } } $b = new b(); $b->api();

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.3.0rc40.0260.00498.97
7.3.0rc30.0150.00316.16
7.3.0beta10.0040.00412.46
7.3.0alpha10.0070.00312.44
7.2.60.0180.01016.70
7.2.00.0090.00619.30
7.1.200.0040.01115.49
7.1.100.0030.00718.05
7.1.70.0030.00716.93
7.1.60.0080.00819.82
7.1.50.0090.01216.81
7.1.00.0030.06322.32
7.0.200.0000.00916.70
7.0.140.0030.07322.00
7.0.60.0100.08020.00
7.0.50.0070.08317.78
7.0.40.0030.04320.11
7.0.30.0230.05720.07
7.0.20.0300.08320.07
7.0.10.0200.06020.19
7.0.00.0030.08720.14
5.6.280.0100.06721.13
5.6.210.0000.04720.75
5.6.200.0030.08718.21
5.6.190.0070.09020.58
5.6.180.3300.04320.39
5.6.170.0270.08020.71
5.6.160.0000.04720.33
5.6.150.0100.07718.24
5.6.140.0100.06318.23
5.6.130.0200.07018.28
5.6.120.0000.05020.96
5.6.110.0000.05020.97
5.6.100.0030.04720.96
5.6.90.0130.07720.98
5.6.80.0070.08020.29
5.6.70.0170.07020.52
5.5.350.0130.05320.44
5.5.340.0170.07018.01
5.5.330.0030.04320.43
5.5.320.0230.07720.27
5.5.310.0270.07320.24
5.5.300.0100.07317.98
5.5.290.0100.05317.97
5.5.280.0070.08320.90
5.5.270.0130.08020.87
5.5.260.0200.07720.89
5.5.250.0070.05720.66
5.5.240.0070.06320.25
5.4.450.0670.05319.62
5.4.440.0870.05719.48
5.4.430.0600.04719.62
5.4.420.0600.05719.38
5.4.410.0130.05019.35
5.4.400.0900.06718.80
5.4.390.0500.05318.63
5.4.380.0300.04718.82
5.4.370.0100.06318.61
5.4.360.0100.05718.56
5.4.350.0170.05018.47
5.4.340.0270.04018.83
5.4.320.0070.04012.50
5.4.310.0060.05312.50
5.4.300.0090.04312.50
5.4.290.0070.03712.50
5.4.280.0080.03512.39
5.4.270.0060.03912.39
5.4.260.0070.05318.73
5.4.250.0070.05719.02
5.4.240.0130.07018.93
5.4.230.0070.08318.96
5.4.220.0100.06318.74
5.4.210.0130.07318.80
5.4.200.0070.06018.98
5.4.190.0070.05318.82
5.4.180.0130.07018.79
5.4.170.0130.05718.93
5.4.160.0130.06319.09
5.4.150.0130.05318.93
5.4.140.0030.05716.59
5.4.130.0070.06016.45
5.4.120.0100.06016.43
5.4.110.0030.08016.67
5.4.100.0170.04716.71
5.4.90.0130.05316.57
5.4.80.0100.07016.65
5.4.70.0030.05716.61
5.4.60.0070.06016.53
5.4.50.0100.04316.62
5.4.40.0100.05316.49
5.4.30.0130.06016.35
5.4.20.0100.05716.54
5.4.10.0170.05316.46
5.4.00.0030.06315.86
5.3.290.0070.06712.80
5.3.280.0070.06014.84
5.3.270.0070.06714.63
5.3.260.0130.06714.80
5.3.250.0130.05014.77
5.3.240.0130.04714.68
5.3.230.0030.05714.68
5.3.220.0030.06014.66
5.3.210.0100.05014.55
5.3.200.0100.05714.54
5.3.190.0170.04714.40
5.3.180.0070.06714.70
5.3.170.0170.05714.58
5.3.160.0070.06314.46
5.3.150.0130.05014.55
5.3.140.0070.05714.40
5.3.130.0070.06714.58
5.3.120.0100.05314.38
5.3.110.0130.08314.63
5.3.100.0130.06714.25
5.3.90.0100.07314.09
5.3.80.0170.05314.01
5.3.70.0170.06014.00
5.3.60.0100.05713.83
5.3.50.0200.05313.86
5.3.40.0230.04013.78
5.3.30.0070.05313.99
5.3.20.0030.06013.79
5.3.10.0070.04713.64
5.3.00.0100.06713.61
5.2.170.0100.06011.12
5.2.160.0030.06311.13
5.2.150.0100.04311.12
5.2.140.0030.04711.14
5.2.130.0070.03711.19
5.2.120.0100.03711.06
5.2.110.0070.04311.20
5.2.100.0100.06311.09
5.2.90.0100.03711.01
5.2.80.0030.04711.07
5.2.70.0000.04711.26
5.2.60.0000.05011.13
5.2.50.0130.04011.10
5.2.40.0130.04311.08
5.2.30.0070.05311.14
5.2.20.0030.04711.18
5.2.10.0030.04010.69
5.2.00.0100.04310.88
5.1.60.0100.02710.00
5.1.50.0030.03310.07
5.1.40.0000.0379.93
5.1.30.0130.04310.30
5.1.20.0100.03010.44
5.1.10.0030.04010.32
5.1.00.0030.03710.27
5.0.50.0030.0408.50
5.0.40.0070.0238.47
5.0.30.0230.08329.99
5.0.20.0270.05029.94
5.0.10.0100.05030.15
5.0.00.0330.06037.55
4.4.90.0030.0277.51
4.4.80.0000.0277.51
4.4.70.0030.0277.51
4.4.60.0000.0337.51
4.4.50.0000.0277.51
4.4.40.0030.0337.51
4.4.30.0000.0237.51
4.4.20.0030.0237.51
4.4.10.0100.0237.51
4.4.00.0070.0407.51
4.3.110.0070.0207.51
4.3.100.0030.0307.51
4.3.90.0100.0237.51
4.3.80.0000.0377.51
4.3.70.0030.0207.51
4.3.60.0070.0177.51
4.3.50.0070.0177.51
4.3.40.0070.0377.51
4.3.30.0000.0237.51
4.3.20.0030.0237.51
4.3.10.0030.0237.51
4.3.00.0000.0236.84