3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = '<?php echo 0x00+2;'; foreach(token_get_all($code) as $c){ if(is_array($c)){ print(token_name($c[0]).": \t".$c[1]."\n"); } else { print("$c\n"); } }

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.0200.00616.88
7.2.00.0060.00619.15
7.1.200.0030.00916.01
7.1.100.0040.00718.20
7.1.70.0030.00717.29
7.1.60.0110.01519.33
7.1.50.0050.01416.87
7.1.00.0030.07722.27
7.0.200.0470.00714.71
7.0.140.0030.07022.21
7.0.60.0100.07719.96
7.0.50.0100.04317.82
7.0.40.0030.04320.27
7.0.30.0300.04720.19
7.0.20.0130.06020.13
7.0.10.0130.05720.19
7.0.00.0030.04320.25
5.6.280.0030.07320.77
5.6.210.0100.07320.59
5.6.200.0030.04018.15
5.6.190.0070.05020.41
5.6.180.0230.07020.60
5.6.170.0230.05320.53
5.6.160.0100.08020.37
5.6.150.0100.07718.18
5.6.140.0100.03718.12
5.6.130.0100.03318.25
5.6.120.0070.04020.97
5.6.110.0070.05720.98
5.6.100.0030.09021.04
5.6.90.0030.04320.88
5.6.80.0000.04020.37
5.6.70.4370.04020.38
5.5.350.0100.08020.37
5.5.340.0030.04717.98
5.5.330.0070.07020.42
5.5.320.0370.07320.50
5.5.310.0270.07320.20
5.5.300.0100.04317.96
5.5.290.0100.08317.95
5.5.280.0000.09320.79
5.5.270.0170.06720.79
5.5.260.0070.04020.79
5.5.250.0100.08020.57
5.5.240.0170.04020.17
5.4.450.0370.04719.12
5.4.440.0330.07319.25
5.4.430.0570.02319.54
5.4.420.0400.06719.55
5.4.410.0430.05719.31
5.4.400.0330.06719.11
5.4.390.0270.04019.08
5.4.380.0270.07019.11
5.4.370.0400.06718.92
5.4.360.0300.06718.92
5.4.350.0270.06019.11
5.4.340.0330.06319.12
5.4.320.0430.06718.75
5.4.310.0400.04718.75
5.4.300.0370.03719.05
5.4.290.0230.05318.93
5.4.280.0370.07019.23
5.4.270.0400.06018.80
5.4.260.0230.08018.93
5.4.250.0330.06719.07
5.4.240.0300.04319.20
5.4.230.0230.04319.11
5.4.220.0270.04319.11
5.4.210.0230.04318.87
5.4.200.0430.03718.91
5.4.190.0330.04719.18
5.4.180.0370.07018.91
5.4.170.0300.07018.78
5.4.160.0500.05718.89
5.4.150.0300.03719.05
5.4.140.0430.06016.35
5.4.130.0370.06716.22
5.4.120.0330.06716.28
5.4.110.0370.06316.38
5.4.100.0270.03716.49
5.4.90.0230.04716.49
5.4.80.0230.04316.29
5.4.70.0300.04016.41
5.4.60.0230.03316.18
5.4.50.0270.03016.38
5.4.40.0170.04016.45
5.4.30.0270.03016.36
5.4.20.0230.03316.26
5.4.10.0230.03716.39
5.4.00.0170.04015.61
5.3.290.0330.07014.52
5.3.280.0400.06014.57
5.3.270.0300.05714.51
5.3.260.0330.03714.45
5.3.250.0330.03314.54
5.3.240.0300.05714.65
5.3.230.0330.06014.43
5.3.220.0370.06314.59
5.3.210.0370.06714.44
5.3.200.0230.05314.41
5.3.190.0230.03714.61
5.3.180.0230.04314.44
5.3.170.0230.04314.42
5.3.160.0230.03714.62
5.3.150.0230.03714.39
5.3.140.0330.03714.39
5.3.130.0300.03314.38
5.3.120.0300.04014.52
5.3.110.0200.04014.39
5.3.100.0230.03313.89
5.3.90.0200.03713.96
5.3.80.0270.03013.87
5.3.70.0300.06013.88
5.3.60.0270.03313.95
5.3.50.0230.03313.89
5.3.40.0200.03713.93
5.3.30.0230.04313.75
5.3.20.0230.04313.54
5.3.10.0230.03713.68
5.3.00.0270.03013.73
5.2.170.0230.02310.98
5.2.160.0200.02711.16
5.2.150.0130.03310.99
5.2.140.0170.03011.19
5.2.130.0270.02010.96
5.2.120.0270.05710.95
5.2.110.0170.02711.25
5.2.100.0170.03010.94
5.2.90.0170.03010.96
5.2.80.0270.02311.14
5.2.70.0170.03010.93
5.2.60.0170.03011.16
5.2.50.0200.02711.11
5.2.40.0200.02311.04
5.2.30.0200.02711.02
5.2.20.0170.02710.84
5.2.10.0170.02710.82
5.2.00.0130.03010.79
5.1.60.0130.02310.07
5.1.50.0230.0239.88
5.1.40.0200.0239.90
5.1.30.0170.03010.19
5.1.20.0170.02710.32
5.1.10.0170.02710.03
5.1.00.0170.02310.19
5.0.50.0100.0439.69
5.0.40.0070.0309.69
5.0.30.0100.0579.69
5.0.20.0100.0279.69
5.0.10.0170.0409.69
5.0.00.0130.0579.69
4.4.90.0100.0139.69
4.4.80.0070.0179.69
4.4.70.0100.0139.69
4.4.60.0070.0209.69
4.4.50.0070.0139.69
4.4.40.0030.0279.69
4.4.30.0100.0179.69
4.4.20.0070.0209.69
4.4.10.0170.0309.69
4.4.00.0170.0479.69
4.3.110.0100.0339.69
4.3.100.0100.0209.69
4.3.90.0100.0139.69
4.3.80.0100.0409.69
4.3.70.0100.0209.69
4.3.60.0130.0339.69
4.3.50.0070.0379.69
4.3.40.0100.0409.69
4.3.30.0070.0209.69
4.3.20.0030.0209.69
4.3.10.0000.0209.69
4.3.00.0070.0339.69