3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [ [ 'code' => 'parse', 'type' => 1000, 'message' => 'hatla', ] ]; var_dump(json_encode($array));
based on t90SD

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.0060.00616.48
7.2.00.0060.00619.30
7.1.200.0040.00415.63
7.1.100.0000.01218.25
7.1.70.0040.00417.18
7.1.60.0190.00019.46
7.1.50.0170.02034.66
7.1.00.0070.07322.48
7.0.200.0030.00316.69
7.0.140.0030.03322.12
7.0.90.0270.06719.89
7.0.80.0200.03719.95
7.0.70.0100.07319.85
7.0.60.0130.04019.96
7.0.50.0270.06320.15
7.0.40.0030.06320.05
7.0.30.0000.04720.18
7.0.20.0000.04720.19
7.0.10.0030.04320.08
7.0.00.0030.04020.07
5.6.280.0030.07320.86
5.6.240.0070.07720.60
5.6.230.0030.04320.56
5.6.220.0100.03320.55
5.6.210.0030.08720.46
5.6.200.0030.07720.91
5.6.190.0030.04321.02
5.6.180.0070.06021.05
5.6.170.0000.04721.13
5.6.160.0070.04021.05
5.6.150.0100.03321.03
5.6.140.0030.04021.01
5.6.130.0030.03320.93
5.6.120.0030.03721.07
5.6.110.0070.03320.93
5.6.100.0030.03320.99
5.6.90.0070.03020.91
5.6.80.0070.03020.55
5.6.70.0030.03320.49
5.6.60.0100.03020.46
5.6.50.0030.04320.42
5.6.40.0000.04320.36
5.6.30.0000.04020.32
5.6.20.0030.04020.39
5.6.10.0070.03720.48
5.6.00.0030.03320.29
5.5.380.0070.06720.45
5.5.370.0070.05320.39
5.5.360.0070.06020.39
5.5.350.0030.08320.37
5.5.340.0070.05320.89
5.5.330.0000.04720.79
5.5.320.0100.04320.88
5.5.310.0100.03720.88
5.5.300.0130.03320.85
5.5.290.0100.03320.75
5.5.280.0100.02720.91
5.5.270.0000.03720.82
5.5.260.0000.04020.82
5.5.250.0030.04020.60
5.5.240.0000.03720.27
5.5.230.0000.04320.28
5.5.220.0030.03320.14
5.5.210.0030.03720.01
5.5.200.0030.03720.12
5.5.190.0030.03320.22
5.5.180.0070.05720.11
5.5.160.0030.03320.27
5.5.150.0130.02320.23
5.5.140.0030.03020.17
5.5.130.0030.03320.20
5.5.120.0070.03020.16
5.5.110.0030.03320.11
5.5.100.0030.04020.06
5.5.90.0130.02319.92
5.5.80.0000.03720.08
5.5.70.0100.05720.05
5.5.60.0070.03720.05
5.5.50.0130.06720.04
5.5.40.0100.06720.00
5.5.30.0100.04319.91
5.5.20.0130.03320.08
5.5.10.0070.07320.07
5.5.00.0030.05720.06
5.4.450.0000.04019.47
5.4.440.0000.03719.11
5.4.430.0070.03019.27
5.4.420.0030.03719.42
5.4.410.0070.02719.00
5.4.400.0030.03719.14
5.4.390.0000.04019.14
5.4.380.0070.03019.03
5.4.370.0000.04019.13
5.4.360.0070.03319.12
5.4.350.0000.04019.10
5.4.340.0070.03718.98
5.4.320.0070.03719.04
5.4.310.0000.03319.12
5.4.300.0000.03319.23
5.4.290.0030.03018.81
5.4.280.0070.02718.99
5.4.270.0000.03318.99
5.4.260.0100.03319.11
5.4.250.0030.03319.22
5.4.240.0070.03719.14
5.4.230.0070.03319.02
5.4.220.0030.05318.94
5.4.210.0130.07019.14
5.4.200.0030.04319.02
5.4.190.0100.07319.08
5.4.180.0030.03718.99
5.4.170.0070.07718.89
5.4.160.0100.04319.05
5.4.150.0070.06719.10
5.4.140.0030.07716.22
5.4.130.0000.07316.31
5.4.120.0130.04016.23
5.4.110.0030.08016.26
5.4.100.0130.06316.31
5.4.90.0030.07316.42
5.4.80.0070.07316.30
5.4.70.0070.07316.36
5.4.60.0030.07716.29
5.4.50.0070.07316.35
5.4.40.0000.04716.29
5.4.30.0100.04716.27
5.4.20.0030.07016.20
5.4.10.0100.04016.20
5.4.00.0030.04715.66
5.3.290.0000.03714.63
5.3.280.0070.07314.50
5.3.270.0070.06014.58
5.3.260.0030.08014.58
5.3.250.0030.03714.46
5.3.240.0070.07014.58
5.3.230.0100.07014.59
5.3.220.0070.04314.53
5.3.210.0100.06314.58
5.3.200.0100.03714.56
5.3.190.0030.05014.39
5.3.180.0030.07314.42
5.3.170.0100.06714.40
5.3.160.0070.05014.49
5.3.150.0070.07314.52
5.3.140.0200.06014.57
5.3.130.0070.04314.51
5.3.120.0000.06014.41
5.3.110.0030.04314.37
5.3.100.0100.04313.88
5.3.90.0070.04313.86
5.3.80.0000.07313.97
5.3.70.0030.05013.87
5.3.60.0100.07013.87
5.3.50.0100.07313.80
5.3.40.0100.04313.80
5.3.30.0230.03313.91
5.3.20.0130.06013.46
5.3.10.0030.07013.66
5.3.00.0030.04713.60
5.2.170.0030.06710.93
5.2.160.0030.03711.14
5.2.150.0100.05711.13
5.2.140.0030.06011.08
5.2.130.0030.06311.16
5.2.120.0100.06710.85
5.2.110.0070.03011.13
5.2.100.0030.05711.12
5.2.90.0130.04711.05
5.2.80.0000.06310.91
5.2.70.0100.05011.03
5.2.60.0170.05010.91
5.2.50.0100.05310.86
5.2.40.0070.05710.98
5.2.30.0130.05010.79
5.2.20.0100.05310.97
5.2.10.0070.06010.77
5.2.00.0030.05010.72
5.1.60.0100.02310.04
5.1.50.0000.04310.00
5.1.40.0030.0479.86
5.1.30.0100.05010.27
5.1.20.0070.04010.36
5.1.10.0070.04710.05
5.1.00.0170.0479.90
5.0.50.0000.0378.57
5.0.40.0070.0438.41
5.0.30.0030.0638.25
5.0.20.0030.0438.23
5.0.10.0000.0408.01
5.0.00.0000.0608.03
4.4.90.0000.0207.60
4.4.80.0030.0277.60
4.4.70.0070.0177.60
4.4.60.0030.0377.60
4.4.50.0030.0277.60
4.4.40.0000.0437.60
4.4.30.0030.0137.60
4.4.20.0030.0377.60
4.4.10.0030.0337.60
4.4.00.0000.0307.60
4.3.110.0030.0207.60
4.3.100.0100.0277.60
4.3.90.0100.0177.60
4.3.80.0000.0277.60
4.3.70.0000.0337.60
4.3.60.0000.0277.60
4.3.50.0000.0237.60
4.3.40.0000.0337.60
4.3.30.0030.0377.60
4.3.20.0030.0337.60
4.3.10.0070.0207.60
4.3.00.0070.0237.60