3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '<?php print "$array[\'a\']";'; foreach (token_get_all($str) as $t) { if (is_array($t)) { $n = token_name($t[0]); $v = $t[1]; } else { $n = "(literal)"; $v = $t; } printf("%25s: %s\n", $n, var_export($v,TRUE)); }

Here you find the average performance (time & memory) of each version. A greyed 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.1.70.0030.00917.28
7.1.60.0040.00717.32
7.1.50.0000.01416.69
7.1.40.0030.00916.70
7.1.30.0040.00816.53
7.1.20.0030.00716.81
7.1.10.0000.00916.43
7.1.00.0000.00816.91
7.0.200.0040.00416.86
7.0.190.0000.00816.74
7.0.180.0040.00416.16
7.0.170.0040.00416.23
7.0.160.0000.00716.17
7.0.150.0040.00416.20
7.0.140.0030.00516.26
7.0.130.0000.00816.69
7.0.120.0000.00816.75
7.0.110.0000.00716.30
7.0.100.0030.00616.49
7.0.90.0000.00816.24
7.0.80.0080.00016.26
7.0.70.0000.00716.59
7.0.60.0030.00716.23
7.0.50.0000.00916.55
7.0.40.0050.00215.39
7.0.30.0040.00715.39
7.0.20.0000.00815.39
7.0.10.0050.00515.39
7.0.00.0000.01215.39
hhvm-3.17.30.0270.07699.04
hhvm-3.15.40.0310.082101.23
hhvm-3.13.20.0240.105109.64
hhvm-3.12.140.0100.097114.75
hhvm-3.11.10.0100.100106.75
hhvm-3.10.10.0230.107103.68
5.6.300.0000.06521.00
5.6.290.0100.04320.67
5.6.280.0030.04321.00
5.6.270.0170.04221.04
5.6.260.0030.04620.90
5.6.250.0030.04021.03
5.6.240.0000.05220.84
5.6.230.0100.03720.92
5.6.220.0030.03920.88
5.6.210.0070.04021.04
5.6.200.0210.03820.78
5.6.190.0100.03820.86
5.6.180.0200.04020.82
5.6.170.0000.04320.86
5.6.160.0070.05721.01
5.6.150.0000.05220.82
5.6.140.0030.04520.73
5.6.130.0030.04920.94
5.6.120.0000.04420.83
5.6.110.0070.04320.76
5.6.100.0030.04420.97
5.6.90.0030.04420.71
5.6.80.0070.04720.35
5.6.70.0030.03920.20
5.6.60.0030.04420.40
5.6.50.0070.03620.11
5.6.40.0100.04920.19
5.6.30.0070.04020.29
5.6.20.0070.05020.20
5.6.10.0130.03220.18
5.6.00.0100.03420.29
5.5.380.0070.03617.46
5.5.370.0030.04317.55
5.5.360.0000.04217.46
5.5.350.0030.04317.50
5.5.340.0070.05017.98
5.5.330.0000.04317.75
5.5.320.0070.03718.02
5.5.310.0030.03818.03
5.5.300.0000.04617.70
5.5.290.0070.04817.83
5.5.280.0030.04018.06
5.5.270.0070.03617.94
5.5.260.0030.04618.03
5.5.250.0070.03617.87
5.5.240.0030.03617.45
5.5.230.0100.03317.36
5.5.220.0000.04617.32
5.5.210.0000.04717.41
5.5.200.0030.04117.35
5.5.190.0030.04417.09
5.5.180.0030.03717.41
5.5.160.0000.03917.21
5.5.150.0030.04217.41
5.5.140.0000.04317.05
5.5.130.0030.03817.32
5.5.120.0000.04417.21
5.5.110.0000.04017.07
5.5.100.0000.05317.25
5.5.90.0030.03817.25
5.5.80.0030.04117.11
5.5.70.0000.04417.10
5.5.60.0000.04317.30
5.5.50.0030.03517.31
5.5.40.0040.03917.27
5.5.30.0030.03517.30
5.5.20.0030.03617.30
5.5.10.0070.04117.20
5.5.00.0070.03317.17
5.4.450.0000.05019.16
5.4.440.0000.04219.34
5.4.430.0000.04619.33
5.4.420.0030.04219.37
5.4.410.0030.04019.29
5.4.400.0030.03618.98
5.4.390.0030.04018.92
5.4.380.0000.04519.07
5.4.370.0070.03619.07
5.4.360.0070.03618.98
5.4.350.0070.03818.83
5.4.340.0030.03918.81
5.4.320.0000.04318.98
5.4.310.0060.03618.89
5.4.300.0070.03918.88
5.4.290.0030.03818.82
5.4.280.0000.04519.05
5.4.270.0140.03818.97
5.4.260.0030.03919.17
5.4.250.0070.04819.16
5.4.240.0030.03618.98
5.4.230.0000.03919.00
5.4.220.0030.03718.91
5.4.210.0000.03919.02
5.4.200.0030.03619.00
5.4.190.0060.03218.97
5.4.180.0040.03518.82
5.4.170.0030.03618.82
5.4.160.0030.03619.08
5.4.150.0000.06519.13
5.4.140.0100.06216.42
5.4.130.0030.06116.69
5.4.120.0030.04316.59
5.4.110.0100.04616.62
5.4.100.0000.03816.58
5.4.90.0070.03116.58
5.4.80.0000.07416.58
5.4.70.0030.03716.55
5.4.60.0000.03916.63
5.4.50.0000.04016.55
5.4.40.0030.03516.54
5.4.30.0000.04216.66
5.4.20.0030.03416.62
5.4.10.0070.07616.48
5.4.00.0030.07315.84
5.3.290.0090.03815.39
5.3.280.0040.03915.39
5.3.270.0060.04215.39
5.3.260.0070.03315.39
5.3.250.0030.06615.39
5.3.240.0100.04115.39
5.3.230.0030.03515.39
5.3.220.0000.04715.39
5.3.210.0040.03615.39
5.3.200.0060.03215.39
5.3.190.0100.03815.39
5.3.180.0000.04515.39
5.3.170.0090.03115.39
5.3.160.0030.03515.39
5.3.150.0070.06815.39
5.3.140.0060.04515.39
5.3.130.0030.04615.39
5.3.120.0070.03715.39
5.3.110.0070.04015.39
5.3.100.0000.04915.39
5.3.90.0000.07915.39
5.3.80.0000.05015.39
5.3.70.0000.04015.39
5.3.60.0170.03715.39
5.3.50.0030.03715.39
5.3.40.0000.04215.39
5.3.30.0030.03515.39
5.3.20.0060.06515.39
5.3.10.0070.04415.39
5.3.00.0000.03915.39
5.2.170.0040.02815.39
5.2.160.0000.03415.39
5.2.150.0070.02415.39
5.2.140.0000.04515.39
5.2.130.0000.03415.39
5.2.120.0070.02315.39
5.2.110.0030.03315.39
5.2.100.0000.03015.39
5.2.90.0070.02315.39
5.2.80.0030.03115.39
5.2.70.0000.03115.39
5.2.60.0030.02815.39
5.2.50.0000.03415.39
5.2.40.0060.02315.39
5.2.30.0030.02915.39
5.2.20.0100.02615.39
5.2.10.0000.03015.39
5.2.00.0000.03015.39
5.1.60.0070.04415.39
5.1.50.0070.05615.39
5.1.40.0030.03615.39
5.1.30.0030.02915.39
5.1.20.0000.03315.39
5.1.10.0000.02815.39
5.1.00.0030.02315.39
5.0.50.0030.03415.39
5.0.40.0000.02215.39
5.0.30.0000.03515.39
5.0.20.0060.01615.39
5.0.10.0000.02215.39
5.0.00.0000.03515.39
4.4.90.0000.01715.39
4.4.80.0000.01715.39
4.4.70.0070.01715.39
4.4.60.0030.01715.39
4.4.50.0030.02515.39
4.4.40.0030.04915.39
4.4.30.0000.01815.39
4.4.20.0000.01815.39
4.4.10.0030.01615.39
4.4.00.0030.05215.39
4.3.110.0120.01215.39
4.3.100.0000.03015.39
4.3.90.0030.01315.39
4.3.80.0000.02615.39
4.3.70.0000.01815.39
4.3.60.0040.02915.39
4.3.50.0030.01615.39
4.3.40.0000.02515.39
4.3.30.0000.03115.39
4.3.20.0000.02215.39
4.3.10.0070.02215.39
4.3.00.0000.01715.39