3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $message = "hello world"; function greeting(){ //global $message; echo $message; } greeting();
based on c4Fm1

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.00.0100.00319.11
7.1.100.0040.01117.91
7.1.70.0000.00717.06
7.1.60.0090.01519.46
7.1.50.0130.01016.83
7.1.00.0070.07022.41
7.0.200.0000.00716.70
7.0.140.0000.07722.08
7.0.60.0030.09320.03
7.0.50.0070.08317.77
7.0.40.0100.08320.06
7.0.30.0300.04020.06
7.0.20.0230.04020.07
7.0.10.0070.08720.15
7.0.00.0130.08020.06
5.6.280.0100.06721.11
5.6.210.0100.05320.56
5.6.200.0100.08318.19
5.6.190.0070.04020.67
5.6.180.0330.05720.64
5.6.170.0300.05020.46
5.6.160.0170.08020.55
5.6.150.0130.05018.16
5.6.140.0000.08318.18
5.6.130.0070.08718.28
5.6.120.0100.05321.01
5.6.110.0130.07721.04
5.6.100.0130.07721.00
5.6.90.0230.04321.11
5.6.80.0030.06720.51
5.5.350.2100.03020.30
5.5.340.0170.02717.98
5.5.330.0130.08320.27
5.5.320.0030.08720.36
5.5.310.0300.07720.36
5.5.300.0070.07017.94
5.5.290.0070.08018.07
5.5.280.0000.09020.85
5.5.270.0070.09020.86
5.5.260.0100.06720.84
5.5.250.0000.04320.66
5.5.240.0030.08020.15
5.4.450.0530.06019.39
5.4.440.0870.04319.43
5.4.430.0100.05319.41
5.4.420.0030.06019.53
5.4.410.0030.06019.57
5.4.400.0070.05719.09
5.4.390.0370.05018.63
5.4.380.0400.06018.40
5.4.370.0370.05018.72
5.4.360.0370.06318.47
5.4.350.0370.06318.73
5.4.340.0270.05718.55
5.4.320.0370.05318.46
5.4.310.0230.05718.49
5.4.300.0270.05018.47
5.4.290.0230.06318.49
5.4.280.0300.05318.59
5.4.270.0370.05718.72
5.4.260.0270.06318.48
5.4.250.0400.05318.54
5.4.240.0270.06318.54
5.4.230.0330.05018.53
5.4.220.0270.05718.58
5.4.210.0400.06018.71
5.4.200.0270.05316.51
5.4.190.0370.06718.68
5.4.180.0400.05318.71
5.4.170.0370.05018.71
5.4.160.0270.05318.53
5.4.150.0330.05718.47
5.4.140.0500.04016.46
5.4.130.0400.05016.25
5.4.120.0200.06016.30
5.4.110.0400.06316.29
5.4.100.0270.05716.23
5.4.90.0470.06716.29
5.4.80.0530.05316.19
5.4.70.0430.07316.29
5.4.60.0370.06016.30
5.4.50.0400.04716.25
5.4.40.0270.05016.29
5.4.30.0270.06016.25
5.4.20.0470.05016.20
5.4.10.0430.05016.41
5.4.00.0300.07315.78
5.3.290.0370.06014.68
5.3.280.0400.06014.63
5.3.270.0370.05014.58
5.3.260.0330.07714.71
5.3.250.0400.06714.80
5.3.240.0300.06714.80
5.3.230.0370.06314.70
5.3.220.0270.06714.62
5.3.210.0400.06714.66
5.3.200.0330.07014.68
5.3.190.0530.05714.54
5.3.180.0370.06714.68
5.3.170.0470.07014.58
5.3.160.0330.07014.58
5.3.150.0400.06314.55
5.3.140.0430.07714.70
5.3.130.0300.07314.56
5.3.120.0300.07014.72
5.3.110.0400.06314.77
5.3.100.0330.06314.26
5.3.90.0330.06314.02
5.3.80.0230.07014.08
5.3.70.0370.06314.03
5.3.60.0400.05714.11
5.3.50.0430.06314.16
5.3.40.0330.06014.05
5.3.30.0230.06714.03
5.3.20.0470.05713.89
5.3.10.0400.06713.68
5.3.00.0500.05313.63
5.2.170.0270.05711.20
5.2.160.0270.04711.16
5.2.150.0230.05311.36
5.2.140.0300.05311.14
5.2.130.0230.05711.08
5.2.120.0230.05311.20
5.2.110.0230.05311.14
5.2.100.0230.05011.09
5.2.90.0330.05011.17
5.2.80.0230.05311.11
5.2.70.0200.05711.19
5.2.60.0370.05711.09
5.2.50.0270.05311.07
5.2.40.0300.04011.05
5.2.30.0270.04711.01
5.2.20.0270.04710.95
5.2.10.0170.05010.90
5.2.00.0130.04710.84
5.1.60.0170.04310.19
5.1.50.0170.03310.01
5.1.40.0170.03710.00
5.1.30.0230.03710.52
5.1.20.0200.04310.53
5.1.10.0330.01710.18
5.1.00.0130.03710.19
5.0.50.0030.0338.72
5.0.40.0100.0278.42
5.0.30.0130.0408.20
5.0.20.0070.0278.38
5.0.10.0070.0338.36
5.0.00.0100.0438.35
4.4.90.0070.0235.90
4.4.80.0100.0205.87
4.4.70.0070.0235.88
4.4.60.0030.0235.95
4.4.50.0030.0275.94
4.4.40.0070.0336.01
4.4.30.0070.0275.88
4.4.20.0130.0206.02
4.4.10.0100.0205.95
4.4.00.0070.0375.94
4.3.110.0100.0235.87
4.3.100.0230.0275.84
4.3.90.0030.0335.78
4.3.80.0130.0435.77
4.3.70.0100.0235.81
4.3.60.0070.0305.91
4.3.50.0130.0305.86
4.3.40.0130.0335.79
4.3.30.0070.0274.57
4.3.20.0000.0374.52
4.3.10.0070.0274.50
4.3.00.0100.0208.32