3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str='\u8bf7\u6c42\u4e2d\u6ca1\u6709'; $str='{"ste":$str}'; print_r(json_decode($str,1));

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.0210.00398.97
7.3.0rc30.0170.00716.50
7.3.0beta10.0140.00012.56
7.2.00.0060.01218.96
7.1.200.0120.00015.52
7.1.100.0030.01018.01
7.1.70.0040.00417.10
7.1.60.0100.01319.40
7.1.50.0070.01416.61
7.1.00.0030.08022.43
7.0.200.0140.00314.58
7.0.140.0070.07021.97
7.0.120.0070.07022.18
7.0.60.0030.08319.85
7.0.50.0100.07717.89
7.0.40.0170.06317.74
7.0.30.0130.06317.69
7.0.20.0100.07717.75
7.0.10.0070.05317.79
7.0.00.0100.08317.79
5.6.280.0000.07720.91
5.6.210.0070.04020.47
5.6.200.0070.07718.23
5.6.190.0030.08018.18
5.6.180.0000.06018.12
5.6.170.0100.08318.15
5.6.160.0070.08018.11
5.6.150.0000.05318.18
5.6.140.0100.03718.22
5.6.130.0070.08018.10
5.6.120.0070.05318.08
5.6.110.0100.05718.11
5.6.100.0070.04718.19
5.6.90.0030.04318.20
5.6.80.0130.07017.50
5.6.70.0030.04717.59
5.6.60.0070.07717.54
5.6.50.0170.07017.57
5.6.40.0100.07317.52
5.6.30.0070.03717.48
5.6.20.0170.07017.47
5.6.10.0030.05717.47
5.6.00.0100.07717.43
5.5.350.0200.08320.46
5.5.340.0130.06718.01
5.5.330.0000.09018.01
5.5.320.0000.07317.88
5.5.310.0230.06317.96
5.5.300.0170.03718.01
5.5.290.0070.04317.88
5.5.280.0070.04018.02
5.5.270.0030.05017.98
5.5.260.0030.07717.93
5.5.250.0100.08017.79
5.5.240.0030.07717.27
5.5.230.0030.04317.28
5.5.220.0070.08317.26
5.5.210.0130.06017.30
5.5.200.0070.04317.38
5.5.190.0030.04317.37
5.5.180.0070.05017.35
5.5.160.0030.08317.30
5.5.150.0130.04717.30
5.5.140.0030.08317.26
5.5.130.0100.06017.26
5.5.120.0100.04017.36
5.5.110.0070.04317.33
5.5.100.0030.03717.21
5.5.90.0030.04017.26
5.5.80.0070.03317.23
5.5.70.0000.04017.26
5.5.60.0070.03317.25
5.5.50.0070.03317.11
5.5.40.0030.03717.16
5.5.30.0030.03717.14
5.5.20.0030.03717.15
5.5.10.0000.04017.13
5.5.00.0000.04017.25
5.4.450.0130.03319.15
5.4.440.0130.07319.45
5.4.430.0030.08019.41
5.4.420.0030.07019.31
5.4.410.0030.04019.29
5.4.400.0000.08719.02
5.4.390.0100.04318.89
5.4.380.0100.07319.12
5.4.370.0170.06319.07
5.4.360.0030.06019.07
5.4.350.0070.07319.01
5.4.340.0130.07318.95
5.4.320.0030.07019.09
5.4.310.0030.05718.98
5.4.300.0100.05719.11
5.4.290.0070.04319.00
5.4.280.0000.06719.14
5.4.270.0130.07319.03
5.4.260.0000.06319.09
5.4.250.0100.03318.95
5.4.240.0030.04018.84
5.4.230.0030.03718.88
5.4.220.0030.03719.00
5.4.210.0030.03718.98
5.4.200.0070.03719.08
5.4.190.0100.03019.21
5.4.180.0030.03719.01
5.4.170.0030.03719.08
5.4.160.0100.03018.97
5.4.150.0000.04019.19
5.4.140.0030.03316.36
5.4.130.0000.03716.32
5.4.120.0000.03716.36
5.4.110.0070.03716.29
5.4.100.0000.03716.45
5.4.90.0070.03016.18
5.4.80.0030.03316.35
5.4.70.0000.04316.51
5.4.60.0000.03716.17
5.4.50.0070.03316.22
5.4.40.0000.03716.32
5.4.30.0070.03016.38
5.4.20.0000.03716.38
5.4.10.0100.02716.38
5.4.00.0030.03315.62
5.3.290.0170.07014.63
5.3.280.0030.03714.58
5.3.270.0000.04014.43
5.3.260.0000.04714.56
5.3.250.0030.03314.58
5.3.240.0000.05014.57
5.3.230.0070.03314.42
5.3.220.0130.03714.50
5.3.210.0030.03714.55
5.3.200.0000.04014.54
5.3.190.0100.03314.49
5.3.180.0030.03314.50
5.3.170.0070.03014.55
5.3.160.0000.03714.50
5.3.150.0000.03714.52
5.3.140.0030.03314.38
5.3.130.0100.04014.53
5.3.120.0030.03714.50
5.3.110.0030.03714.50
5.3.100.0000.03714.02
5.3.90.0000.04713.97
5.3.80.0100.04013.92
5.3.70.0100.05713.95
5.3.60.0030.04313.92
5.3.50.0130.07013.71
5.3.40.0100.04713.86
5.3.30.0070.05313.89
5.3.20.0030.07313.46
5.3.10.0130.03313.39
5.3.00.0000.04313.71
5.2.170.0070.05710.93
5.2.160.0100.02711.12
5.2.150.0070.05011.07
5.2.140.0070.05711.10
5.2.130.0070.05011.10
5.2.120.0070.05311.09
5.2.110.0030.02710.92
5.2.100.0030.06010.99
5.2.90.0100.03311.09
5.2.80.0070.02711.06
5.2.70.0070.05711.23
5.2.60.0030.06710.88
5.2.50.0030.03711.00
5.2.40.0070.03710.96
5.2.30.0030.03010.79
5.2.20.0000.03710.75
5.2.10.0100.05010.91
5.2.00.0070.06010.66
5.1.60.0030.0279.95
5.1.50.0000.0539.97
5.1.40.0070.0509.90
5.1.30.0070.05310.36
5.1.20.0000.06310.24
5.1.10.0100.03710.00
5.1.00.0170.0439.90
5.0.50.0100.0338.48
5.0.40.0070.0208.47
5.0.30.0000.0338.13
5.0.20.0000.0278.25
5.0.10.0100.0308.23
5.0.00.0030.0638.19
4.4.90.0030.0337.99
4.4.80.0000.0337.99
4.4.70.0000.0337.99
4.4.60.0000.0337.99
4.4.50.0000.0277.99
4.4.40.0070.0207.99
4.4.30.0030.0337.99
4.4.20.0000.0377.99
4.4.10.0070.0307.99
4.4.00.0000.0577.99
4.3.110.0030.0337.99
4.3.100.0000.0307.99
4.3.90.0030.0277.99
4.3.80.0030.0507.99
4.3.70.0030.0207.99
4.3.60.0000.0237.99
4.3.50.0070.0337.99
4.3.40.0000.0577.99
4.3.30.0030.0337.99
4.3.20.0030.0307.99
4.3.10.0000.0307.99
4.3.00.0000.0277.99