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 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.0rc40.0030.00998.97
7.3.0rc30.0150.00516.75
7.3.0beta10.0030.00312.50
7.3.0alpha10.0080.00312.41
7.2.60.0060.00616.69
7.2.30.0090.01318.13
7.2.20.0170.01017.99
7.2.10.0120.01017.58
7.2.00.0150.01217.86
7.1.200.0030.00915.71
7.1.150.0160.00816.67
7.1.140.0190.01216.72
7.1.130.0110.01916.73
7.1.120.0120.01216.61
7.1.110.0130.00716.24
7.1.100.0130.01316.09
7.1.90.0150.01116.02
7.1.80.0190.00816.20
7.1.70.0080.01016.36
7.1.60.0190.01325.13
7.1.50.0170.01624.86
7.1.40.0140.01124.65
7.1.30.0150.01324.68
7.1.20.0120.01124.71
7.1.10.0050.01315.71
7.1.00.0050.00915.91
7.0.270.0110.01316.43
7.0.260.0130.00816.23
7.0.250.0160.00916.06
7.0.240.0100.01415.81
7.0.230.0150.01115.54
7.0.220.0130.01315.10
7.0.210.0100.01314.96
7.0.200.0080.00615.95
7.0.190.0050.00815.81
7.0.180.0050.00815.40
7.0.170.0130.00815.30
7.0.160.0730.00915.40
7.0.150.0100.00915.28
7.0.140.0080.00815.31
7.0.130.0050.01015.76
7.0.120.0050.01115.76
7.0.110.0060.00915.37
7.0.100.0050.00915.48
7.0.90.0060.00815.38
7.0.80.0090.00415.37
7.0.70.0040.00815.63
7.0.60.0060.00915.34
7.0.50.0040.01015.58
7.0.40.0080.00515.15
7.0.30.0100.00714.94
7.0.20.0040.00914.97
7.0.10.0080.00815.06
7.0.00.0050.01214.98
hhvm-3.22.00.1170.24590.30
hhvm-3.21.30.0940.22290.30
hhvm-3.21.00.1260.24389.88
hhvm-3.20.20.1320.20190.30
hhvm-3.19.20.1180.20989.34
hhvm-3.18.50.1230.28688.39
hhvm-3.18.40.1230.22088.25
hhvm-3.17.30.0750.16593.15
hhvm-3.15.40.0700.13293.08
hhvm-3.13.20.0840.155103.05
hhvm-3.12.140.0650.156104.98
hhvm-3.11.10.0680.17396.98
hhvm-3.10.10.0630.14994.05
5.6.300.0130.05820.87
5.6.290.0120.06320.64
5.6.280.0060.05320.96
5.6.270.0190.06020.91
5.6.260.0100.05220.95
5.6.250.0090.05021.03
5.6.240.0080.05720.91
5.6.230.0150.06020.95
5.6.220.0150.05520.83
5.6.210.0090.05121.01
5.6.200.0180.05120.79
5.6.190.0150.04620.90
5.6.180.0190.06020.85
5.6.170.0100.04620.90
5.6.160.0120.05520.97
5.6.150.0090.05420.86
5.6.140.0080.05320.78
5.6.130.0120.05220.84
5.6.120.0090.05720.79
5.6.110.0110.05020.76
5.6.100.0120.06120.85
5.6.90.0090.05120.73
5.6.80.0100.05020.36
5.6.70.0100.04820.18
5.6.60.0100.05020.33
5.6.50.0120.04720.23
5.6.40.0160.06120.26
5.6.30.0100.05120.21
5.6.20.0080.05720.24
5.6.10.0120.04520.17
5.6.00.0110.04620.23
5.5.380.0110.04517.45
5.5.370.0100.04917.48
5.5.360.0070.05017.43
5.5.350.0090.05317.46
5.5.340.0110.05317.98
5.5.330.0090.04817.76
5.5.320.0120.04817.96
5.5.310.0120.04618.05
5.5.300.0070.05217.89
5.5.290.0130.05117.90
5.5.280.0080.04918.02
5.5.270.0110.04817.93
5.5.260.0120.06017.99
5.5.250.0150.05417.87
5.5.240.0070.04617.38
5.5.230.0140.04117.22
5.5.220.0110.05617.33
5.5.210.0110.05717.28
5.5.200.0090.05817.32
5.5.190.0090.05617.20
5.5.180.0090.04717.33
5.5.160.0070.05717.26
5.5.150.0100.05717.28
5.5.140.0080.04817.16
5.5.130.0110.05617.36
5.5.120.0070.04817.26
5.5.110.0090.04517.11
5.5.100.0080.05317.24
5.5.90.0060.04917.23
5.5.80.0080.04617.05
5.5.70.0090.04817.06
5.5.60.0060.04817.25
5.5.50.0070.05317.26
5.5.40.0090.04717.15
5.5.30.0100.04217.17
5.5.20.0080.04817.21
5.5.10.0120.04517.24
5.5.00.0090.05517.14
5.4.450.0110.06019.33
5.4.440.0070.05019.30
5.4.430.0090.05619.27
5.4.420.0090.06119.43
5.4.410.0090.05219.14
5.4.400.0120.04119.04
5.4.390.0090.04618.94
5.4.380.0080.04819.01
5.4.370.0140.04318.98
5.4.360.0130.05818.98
5.4.350.0110.04519.00
5.4.340.0090.04618.89
5.4.320.0110.06018.98
5.4.310.0120.04518.93
5.4.300.0100.04718.91
5.4.290.0060.04818.80
5.4.280.0090.06219.03
5.4.270.0160.04519.00
5.4.260.0090.04719.02
5.4.250.0080.05519.06
5.4.240.0100.04418.96
5.4.230.0070.04518.97
5.4.220.0070.04918.99
5.4.210.0070.04718.98
5.4.200.0080.04419.01
5.4.190.0100.04419.02
5.4.180.0130.04818.89
5.4.170.0090.04418.78
5.4.160.0110.05419.00
5.4.150.0100.05818.94
5.4.140.0140.06016.34
5.4.130.0140.06116.63
5.4.120.0070.04816.52
5.4.110.0150.05216.60
5.4.100.0110.04916.54
5.4.90.0100.04116.57
5.4.80.0070.06116.43
5.4.70.0120.05116.49
5.4.60.0100.05216.45
5.4.50.0100.04016.41
5.4.40.0090.04116.55
5.4.30.0070.04416.49
5.4.20.0080.04216.61
5.4.10.0090.06416.47
5.4.00.0090.06015.91
5.3.290.0110.05215.12
5.3.280.0090.04514.99
5.3.270.0090.04915.07
5.3.260.0130.05015.03
5.3.250.0090.06015.10
5.3.240.0150.05415.03
5.3.230.0080.04415.07
5.3.220.0100.05815.05
5.3.210.0100.04415.02
5.3.200.0090.04214.97
5.3.190.0120.04515.01
5.3.180.0070.05815.06
5.3.170.0140.04714.88
5.3.160.0100.04215.01
5.3.150.0090.05914.97
5.3.140.0140.05415.01
5.3.130.0110.05815.06
5.3.120.0110.04414.97
5.3.110.0100.04615.00
5.3.100.0060.05514.77
5.3.90.0040.06614.81
5.3.80.0050.05214.80
5.3.70.0060.04514.74
5.3.60.0130.04414.60
5.3.50.0080.05114.63
5.3.40.0060.05614.72
5.3.30.0090.04214.69
5.3.20.0130.06314.51
5.3.10.0120.04414.60
5.3.00.0080.05014.60
5.2.170.0050.03613.37
5.2.160.0050.04613.27
5.2.150.0110.03313.23
5.2.140.0030.05113.38
5.2.130.0060.04513.21
5.2.120.0080.04013.35
5.2.110.0060.03713.36
5.2.100.0050.03413.24
5.2.90.0070.03313.33
5.2.80.0060.03813.15
5.2.70.0070.04413.30
5.2.60.0070.03613.33
5.2.50.0040.04013.32
5.2.40.0090.03113.22
5.2.30.0090.03513.30
5.2.20.0120.03113.23
5.2.10.0040.03513.15
5.2.00.0070.03313.13
5.1.60.0110.04412.74
5.1.50.0060.04712.85
5.1.40.0050.03912.78
5.1.30.0070.03212.94
5.1.20.0030.03912.90
5.1.10.0070.03512.77
5.1.00.0070.02912.87
5.0.50.0080.03612.11
5.0.40.0060.02511.95
5.0.30.0040.03911.96
5.0.20.0070.02211.78
5.0.10.0070.02811.83
5.0.00.0030.04311.92
4.4.90.0040.01811.73
4.4.80.0050.02211.73
4.4.70.0080.02111.73
4.4.60.0050.02411.73
4.4.50.0050.02811.73
4.4.40.0050.04111.73
4.4.30.0050.01911.73
4.4.20.0020.02011.73
4.4.10.0060.02211.73
4.4.00.0050.04411.73
4.3.110.0090.01611.73
4.3.100.0040.02511.73
4.3.90.0060.01511.73
4.3.80.0030.03311.73
4.3.70.0020.02411.73
4.3.60.0060.02311.73
4.3.50.0040.01911.73
4.3.40.0040.03411.73
4.3.30.0020.02611.73
4.3.20.0030.02311.73
4.3.10.0060.02511.73
4.3.00.0030.02111.73