3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php putenv("TEST=PHP_SELF"); $test = getenv("TEST"); echo $test; $test = getenv('HTTP_X_FORWARDED_FOR'); echo $test;

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.0060.01019.23
7.1.100.0040.00717.81
7.1.70.0110.00017.00
7.1.60.0000.02519.82
7.1.50.0070.01116.98
7.1.00.0070.07022.35
7.0.200.0090.00316.41
7.0.140.0000.08022.11
7.0.60.0030.04019.86
7.0.50.0030.04017.80
7.0.40.0070.04019.96
7.0.30.0300.03720.17
7.0.20.0270.06020.09
7.0.10.0000.04720.12
7.0.00.0000.09020.11
5.6.280.0000.07721.13
5.6.210.0100.06320.56
5.6.200.0000.04318.09
5.6.190.0100.08320.41
5.6.180.0330.03320.56
5.6.170.0300.07720.47
5.6.160.0100.06720.44
5.6.150.0130.04318.15
5.6.140.0100.06318.20
5.6.130.0100.08318.15
5.6.120.0100.07721.08
5.6.110.0070.06321.08
5.6.100.0130.07721.07
5.6.90.0130.05721.11
5.6.80.0030.03720.36
5.5.350.2370.03320.48
5.5.340.0030.08317.98
5.5.330.0100.05720.46
5.5.320.2530.04720.33
5.5.310.0300.06720.27
5.5.300.0070.07717.91
5.5.290.0130.06017.95
5.5.280.0070.03720.87
5.5.270.0030.06020.75
5.5.260.0130.07320.74
5.5.250.0030.07320.78
5.5.240.0000.04320.14
5.4.450.0200.06319.46
5.4.440.0900.05319.23
5.4.430.0230.05319.57
5.4.420.0600.06019.40
5.4.410.0730.06719.40
5.4.400.0830.06019.16
5.4.390.1000.04018.76
5.4.380.0230.05718.49
5.4.370.0230.05318.62
5.4.360.0230.05318.46
5.4.350.0230.05718.52
5.4.340.0270.05018.78
5.4.320.0040.03812.45
5.4.310.0040.04812.45
5.4.300.0060.04012.46
5.4.290.0070.05212.45
5.4.280.0040.03612.35
5.4.270.0100.05319.03
5.4.260.0030.05318.68
5.4.250.0170.04318.87
5.4.240.0170.06718.75
5.4.230.0070.05018.64
5.4.220.0070.07318.99
5.4.210.0100.05318.78
5.4.200.0030.05719.02
5.4.190.0170.05018.73
5.4.180.0170.04018.89
5.4.170.0070.06318.82
5.4.160.0170.04318.73
5.4.150.0170.05318.80
5.4.140.0070.05316.29
5.4.130.0100.04716.23
5.4.120.0130.04716.45
5.4.110.0100.04716.29
5.4.100.0170.04016.52
5.4.90.0070.04716.50
5.4.80.0100.06316.51
5.4.70.0000.08016.51
5.4.60.0130.04316.48
5.4.50.0100.04716.32
5.4.40.0000.05716.55
5.4.30.0070.04716.46
5.4.20.0070.05016.26
5.4.10.0130.04716.39
5.4.00.0070.04715.65
5.3.290.0070.03712.80
5.3.280.0100.06714.61
5.3.270.0130.04714.45
5.3.260.0170.05714.46
5.3.250.0200.04014.48
5.3.240.0100.05714.62
5.3.230.0130.04314.46
5.3.220.0070.07014.44
5.3.210.0130.04714.45
5.3.200.0070.06014.26
5.3.190.0070.07314.65
5.3.180.0030.06014.73
5.3.170.0070.04714.56
5.3.160.0130.06714.39
5.3.150.0070.05014.33
5.3.140.0030.05314.26
5.3.130.0100.04714.55
5.3.120.0130.04714.58
5.3.110.0170.04314.55
5.3.100.0000.05713.92
5.3.90.0100.04314.10
5.3.80.0030.05713.87
5.3.70.0130.06013.79
5.3.60.0070.05014.14
5.3.50.0000.05314.04
5.3.40.0070.07013.86
5.3.30.0070.05013.82
5.3.20.0070.06713.54
5.3.10.0270.05013.48
5.3.00.0070.05013.73
5.2.170.0200.03010.90
5.2.160.0030.05711.25
5.2.150.0030.04711.14
5.2.140.0030.04311.15
5.2.130.0000.04311.11
5.2.120.0070.03711.03
5.2.110.0070.03711.01
5.2.100.0070.04310.98
5.2.90.0070.03711.25
5.2.80.0070.03711.13
5.2.70.0030.04011.24
5.2.60.0100.05311.05
5.2.50.0030.04310.93
5.2.40.0100.03311.01
5.2.30.0030.05310.98
5.2.20.0100.03311.05
5.2.10.0070.04710.93
5.2.00.0030.04010.80
5.1.60.0000.03710.14
5.1.50.0030.03310.18
5.1.40.0170.0279.93
5.1.30.0100.04310.41
5.1.20.0130.02710.33
5.1.10.0070.03310.11
5.1.00.0070.0309.97
5.0.50.0030.0278.52
5.0.40.0030.0378.64
5.0.30.0030.0408.10
5.0.20.0030.0278.22
5.0.10.0070.0238.20
5.0.00.0070.0478.13
4.4.90.0030.0237.32
4.4.80.0000.0237.32
4.4.70.0000.0237.32
4.4.60.0000.0237.32
4.4.50.0030.0207.32
4.4.40.0000.0377.32
4.4.30.0030.0207.32
4.4.20.0030.0307.32
4.4.10.0000.0237.32
4.4.00.0000.0337.32
4.3.110.0070.0177.32
4.3.100.0000.0207.32
4.3.90.0030.0277.32
4.3.80.0030.0377.32
4.3.70.0070.0137.32
4.3.60.0030.0277.32
4.3.50.0000.0337.32
4.3.40.0030.0307.32
4.3.30.0030.0207.32
4.3.20.0000.0237.32
4.3.10.0000.0207.32
4.3.00.0070.0208.13