3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array("result"=>-1, "data"=>"12039841290384qwioeurqwieur348971239-48"); echo json_encode( unserialize( $array));

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.0100.00316.75
7.2.00.0030.01019.16
7.1.200.0090.00615.60
7.1.100.0030.00717.73
7.1.70.0030.00617.05
7.1.60.0070.01419.40
7.1.50.0120.01216.82
7.1.00.0100.07022.31
7.0.200.0000.00716.46
7.0.140.0030.07322.11
7.0.90.0030.08319.93
7.0.80.0070.08719.89
7.0.70.0230.03719.87
7.0.60.0070.08019.96
7.0.50.0030.06020.38
7.0.40.0070.04720.11
7.0.30.0030.09020.13
7.0.20.0030.06720.08
7.0.10.0100.08020.17
7.0.00.0070.04320.14
5.6.280.0000.07721.06
5.6.240.0070.08020.63
5.6.230.0100.07720.56
5.6.220.0170.07720.57
5.6.210.0070.08720.66
5.6.200.0070.08321.11
5.6.190.0100.08021.12
5.6.180.0100.08021.13
5.6.170.0130.07721.04
5.6.160.0030.07021.01
5.6.150.0170.07321.13
5.6.140.0130.03321.07
5.6.130.0070.06721.03
5.6.120.0130.06721.01
5.6.110.0070.05020.92
5.6.100.0100.08321.06
5.6.90.0130.07321.05
5.6.80.0100.07020.31
5.6.70.0070.07320.54
5.6.60.0070.05720.30
5.6.50.0200.07020.46
5.6.40.0030.08020.37
5.6.30.0170.06320.36
5.6.20.0170.06020.30
5.6.10.0030.06320.42
5.6.00.0100.05020.45
5.5.380.0130.06320.36
5.5.370.0070.07720.41
5.5.360.0070.08320.39
5.5.350.0130.06320.40
5.5.340.0200.06720.87
5.5.330.0100.07320.75
5.5.320.0100.08020.86
5.5.310.0130.08020.88
5.5.300.0100.08020.91
5.5.290.0100.07320.80
5.5.280.0030.08320.77
5.5.270.0100.07720.90
5.5.260.0100.08020.74
5.5.250.0130.07020.69
5.5.240.0030.04720.21
5.5.230.0030.08020.25
5.5.220.0070.07720.19
5.5.210.0130.06319.98
5.5.200.0130.07320.21
5.5.190.0070.04720.22
5.5.180.0070.05020.14
5.5.160.0000.08320.13
5.5.150.0000.06720.23
5.5.140.0100.06720.21
5.5.130.0200.06320.17
5.5.120.0100.05720.13
5.5.110.0070.04020.14
5.5.100.0070.04720.07
5.5.90.0130.04019.94
5.5.80.0070.07720.04
5.5.70.0170.05320.05
5.5.60.0100.07019.91
5.5.50.0070.04720.02
5.5.40.0070.07720.00
5.5.30.0100.07020.06
5.5.20.0200.06720.02
5.5.10.0100.07320.11
5.5.00.0030.04320.02
5.4.450.0000.05319.34
5.4.440.0100.07319.45
5.4.430.0070.08019.55
5.4.420.0200.06719.27
5.4.410.0070.07019.29
5.4.400.0130.06719.05
5.4.390.0030.07719.23
5.4.380.0100.07719.12
5.4.370.0070.06018.92
5.4.360.0030.07318.81
5.4.350.0100.05719.14
5.4.340.0030.05719.05
5.4.320.0070.04318.98
5.4.310.0070.05719.00
5.4.300.0130.07019.02
5.4.290.0130.06719.23
5.4.280.0070.04719.02
5.4.270.0100.06719.23
5.4.260.0100.07718.91
5.4.250.0030.08018.77
5.4.240.0070.07018.94
5.4.230.0170.07018.96
5.4.220.0100.07319.05
5.4.210.0030.04019.04
5.4.200.0070.07319.04
5.4.190.0070.07319.05
5.4.180.0000.08319.23
5.4.170.0030.07318.93
5.4.160.0130.06719.07
5.4.150.0070.07319.09
5.4.140.0130.06316.02
5.4.130.0030.07316.23
5.4.120.0030.07316.23
5.4.110.0100.04016.32
5.4.100.0000.04716.38
5.4.90.0070.07016.21
5.4.80.0100.04016.19
5.4.70.0030.04016.24
5.4.60.0170.06316.32
5.4.50.0070.05016.39
5.4.40.0030.04016.43
5.4.30.0070.07016.37
5.4.20.0070.08016.27
5.4.10.0030.07316.27
5.4.00.0100.07015.68
5.3.290.0100.07014.66
5.3.280.0000.05014.55
5.3.270.0000.08014.46
5.3.260.0070.03714.58
5.3.250.0100.07714.56
5.3.240.0030.06714.51
5.3.230.0130.06714.52
5.3.220.0130.07314.50
5.3.210.0070.06314.52
5.3.200.0030.06014.40
5.3.190.0070.07314.47
5.3.180.0130.06014.52
5.3.170.0070.06714.46
5.3.160.0070.04714.52
5.3.150.0200.06014.53
5.3.140.0030.07714.38
5.3.130.0170.07014.40
5.3.120.0130.07014.36
5.3.110.0070.08014.36
5.3.100.0070.07313.95
5.3.90.0070.07313.89
5.3.80.0100.07313.79
5.3.70.0000.07313.92
5.3.60.0030.04713.76
5.3.50.0100.06313.93
5.3.40.0130.05313.93
5.3.30.0100.06713.90
5.3.20.0100.04713.64
5.3.10.0000.05013.56
5.3.00.0100.04013.42
5.2.170.0000.03711.18
5.2.160.0070.06310.98
5.2.150.0030.06311.18
5.2.140.0100.05711.21
5.2.130.0100.05710.91
5.2.120.0130.05311.14
5.2.110.0000.06711.13
5.2.100.0000.06711.09
5.2.90.0070.06311.02
5.2.80.0030.06311.08
5.2.70.0000.06711.04
5.2.60.0030.06011.04
5.2.50.0100.05710.94
5.2.40.0030.04310.98
5.2.30.0070.04010.73
5.2.20.0070.05710.98
5.2.10.0030.03310.93
5.2.00.0070.05710.75
5.1.60.0100.04310.61
5.1.50.0070.03310.61
5.1.40.0100.05010.61
5.1.30.0070.05710.61
5.1.20.0100.05010.61
5.1.10.0100.04710.61
5.1.00.0100.03010.61
5.0.50.0030.02710.61
5.0.40.0070.03710.61
5.0.30.0030.06710.61
5.0.20.0130.02710.61
5.0.10.0030.04010.61
5.0.00.0070.03710.61
4.4.90.0000.04010.61
4.4.80.0000.03710.61
4.4.70.0070.03310.61
4.4.60.0000.02710.61
4.4.50.0070.02710.61
4.4.40.0030.05310.61
4.4.30.0000.03010.61
4.4.20.0030.03710.61
4.4.10.0030.03010.61
4.4.00.0030.05310.61
4.3.110.0000.03710.61
4.3.100.0170.02010.61
4.3.90.0030.01710.61
4.3.80.0000.02710.61
4.3.70.0030.01710.61
4.3.60.0000.03310.61
4.3.50.0000.02010.61
4.3.40.0030.05310.61
4.3.30.0000.03710.61
4.3.20.0070.03010.61
4.3.10.0000.02710.61
4.3.00.0000.03710.61