3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function takes_array($input) { echo "$input[0] + $input[1] = ", $input[0]+$input[1]; } takes_array("Hello");

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.10.0040.01116.54
7.3.00.0040.01216.34
7.2.130.0000.01317.07
7.2.120.0040.00816.71
7.2.110.0140.00016.84
7.2.100.0170.00016.95
7.2.90.0070.00317.01
7.2.80.0030.00716.98
7.2.70.0030.01416.66
7.2.60.0070.00616.93
7.2.50.0130.00616.77
7.2.40.0070.00716.91
7.2.30.0090.00616.80
7.2.20.0070.00416.83
7.2.10.0070.00716.83
7.2.00.0080.00718.20
7.1.250.0040.00415.95
7.1.200.0060.00615.80
7.1.100.0030.01018.17
7.1.70.0000.00916.82
7.1.60.0030.02019.40
7.1.50.0030.02016.63
7.1.00.0200.06322.35
7.0.200.0080.00016.63
7.0.140.0000.07721.98
7.0.120.0030.05722.02
7.0.110.0000.08022.02
7.0.100.0000.06022.00
7.0.90.0030.07022.17
7.0.80.0000.08022.03
7.0.70.0030.06322.14
7.0.60.0100.06722.08
7.0.50.0000.06722.21
7.0.40.0070.06322.08
7.0.30.0030.04722.20
7.0.20.0070.07022.00
7.0.10.0000.07322.10
7.0.00.0130.05722.07
5.6.280.0070.07020.78
5.6.260.0000.06721.14
5.6.250.0070.06021.05
5.6.240.0100.05320.88
5.6.230.0070.06720.87
5.6.220.0070.07021.05
5.6.210.0000.07320.98
5.6.200.0070.07320.89
5.6.190.0000.07720.83
5.6.180.0030.06021.01
5.6.170.0000.07720.95
5.6.160.0100.06721.09
5.6.150.0030.07720.91
5.6.140.0030.07720.85
5.6.130.0070.04720.96
5.6.120.0000.08020.85
5.6.110.0070.06721.07
5.6.100.0070.03321.02
5.6.90.0000.07721.05
5.6.80.0070.06320.42
5.6.70.0100.06320.42
5.6.60.0030.07020.26
5.6.50.0030.06720.14
5.6.40.0030.06020.40
5.6.30.0000.07320.45
5.6.20.0000.07320.16
5.6.10.0070.06720.37
5.6.00.0000.07320.38
5.5.380.0030.07017.68
5.5.370.0000.07317.47
5.5.360.0000.07717.55
5.5.350.0000.06717.51
5.5.340.0030.07317.91
5.5.330.0000.07018.09
5.5.320.0000.07318.25
5.5.310.0100.06717.93
5.5.300.0030.06718.08
5.5.290.0000.07717.91
5.5.280.0000.06317.96
5.5.270.0030.07318.10
5.5.260.0000.04717.91
5.5.250.0030.07017.64
5.5.240.0100.06317.32
5.5.230.0130.06317.31
5.5.220.0000.07317.61
5.5.210.0000.07317.46
5.5.200.0000.05317.48
5.5.190.0100.04317.58
5.5.180.0000.07017.50
5.5.160.0000.07017.27
5.5.150.0030.07017.45
5.5.140.0000.06017.40
5.5.130.0000.07017.18
5.5.120.0000.06717.26
5.5.110.0000.07017.45
5.5.100.0070.06317.17
5.5.90.0030.06017.18
5.5.80.0100.05717.08
5.5.70.0030.07017.17
5.5.60.0000.07017.34
5.5.50.0030.06717.33
5.5.40.0030.06017.38
5.5.30.0000.05017.03
5.5.20.0100.06317.15
5.5.10.0030.06717.46
5.5.00.0030.07317.16
5.4.450.0070.05719.33
5.4.440.0070.06319.34
5.4.430.0070.07719.54
5.4.420.0070.06319.63
5.4.410.0000.07019.20
5.4.400.0030.06719.14
5.4.390.0030.07019.16
5.4.380.0000.07019.21
5.4.370.0070.06318.94
5.4.360.0030.07019.33
5.4.350.0000.05319.18
5.4.340.0030.05318.96
5.4.320.0030.07019.24
5.4.310.0000.07019.30
5.4.300.0030.06719.13
5.4.290.0030.06719.00
5.4.280.0000.07019.14
5.4.270.0070.06018.93
5.4.260.0030.06719.00
5.4.250.0030.06719.17
5.4.240.0000.07019.30
5.4.230.0070.06719.15
5.4.220.0070.06019.15
5.4.210.0000.07318.96
5.4.200.0070.05319.11
5.4.190.0000.06018.99
5.4.180.0030.06018.93
5.4.170.0000.04719.00
5.4.160.0030.06019.29
5.4.150.0030.07018.96
5.4.140.0070.06016.53
5.4.130.0000.06016.32
5.4.120.0000.03316.32
5.4.110.0030.02716.54
5.4.100.0030.06316.54
5.4.90.0030.06016.46
5.4.80.0000.06316.48
5.4.70.0030.06316.48
5.4.60.0030.06016.53
5.4.50.0030.06316.38
5.4.40.0000.06316.46
5.4.30.0030.06316.28
5.4.20.0000.06716.62
5.4.10.0130.05016.43
5.4.00.0030.06315.82
5.3.290.0070.06014.79
5.3.280.0030.06014.61
5.3.270.0070.06714.60
5.3.260.0030.04314.73
5.3.250.0070.06314.83
5.3.240.0000.07014.64
5.3.230.0030.03714.82
5.3.220.0030.02714.59
5.3.210.0030.02714.55
5.3.200.0030.03714.52
5.3.190.0070.06014.70
5.3.180.0030.06014.69
5.3.170.0030.06714.58
5.3.160.0070.06314.56
5.3.150.0100.06014.52
5.3.140.0030.06014.68
5.3.130.0030.07014.68
5.3.120.0100.06014.40
5.3.110.0000.06714.67
5.3.100.0030.06314.12
5.3.90.0030.05314.02
5.3.80.0030.06714.15
5.3.70.0030.06314.02
5.3.60.0070.06014.07
5.3.50.0030.06014.07
5.3.40.0030.06313.93
5.3.30.0000.07014.03
5.3.20.0000.06313.83
5.3.10.0030.06013.72
5.3.00.0030.06313.59
5.2.170.0000.05011.12
5.2.160.0100.04311.28
5.2.150.0000.05011.15
5.2.140.0000.05011.11
5.2.130.0030.05311.09
5.2.120.0070.05011.11
5.2.110.0030.04711.15
5.2.100.0000.05311.05
5.2.90.0000.05311.23
5.2.80.0030.05711.21
5.2.70.0030.05711.05
5.2.60.0030.05011.03
5.2.50.0000.05010.98
5.2.40.0030.05311.01
5.2.30.0000.05711.20
5.2.20.0030.05310.99
5.2.10.0030.04310.95
5.2.00.0000.05710.68
5.1.60.0030.04710.28
5.1.50.0030.04710.28
5.1.40.0000.04710.28
5.1.30.0000.05010.56
5.1.20.0030.05010.41
5.1.10.0000.04310.28
5.1.00.0030.04710.28
5.0.50.0000.03710.28
5.0.40.0030.03710.28
5.0.30.0000.05710.28
5.0.20.0030.03310.28
5.0.10.0000.03310.28
5.0.00.0000.06010.28
4.4.90.0000.03010.28
4.4.80.0000.03010.28
4.4.70.0030.02710.28
4.4.60.0000.03010.28
4.4.50.0000.03010.28
4.4.40.0030.04310.28
4.4.30.0030.02710.28
4.4.20.0000.03010.28
4.4.10.0030.02710.28
4.4.00.0030.04310.28
4.3.110.0000.03310.28
4.3.100.0070.02310.28
4.3.90.0030.02310.28
4.3.80.0000.04710.28
4.3.70.0070.02010.28
4.3.60.0000.03010.28
4.3.50.0000.03010.28
4.3.40.0000.04710.28
4.3.30.0030.03010.28
4.3.20.0000.03310.28
4.3.10.0000.03010.28
4.3.00.0000.03310.28