3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = json_decode('{"asd": {"":""}}', true); print_r($x); ?>

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.0000.01616.43
7.2.00.0000.01518.93
7.1.200.0080.00015.72
7.1.100.0070.00318.32
7.1.70.0000.00717.07
7.1.60.0060.01819.70
7.1.50.0100.00716.89
7.1.00.0000.08022.35
7.0.200.0080.00414.82
7.0.140.0070.07322.21
7.0.60.0100.07720.03
7.0.50.0030.04017.66
7.0.40.0130.07720.09
7.0.30.0470.07020.21
7.0.20.0230.07320.19
7.0.10.0070.04320.12
7.0.00.0030.07020.05
5.6.280.0000.07720.81
5.6.210.0070.08020.77
5.6.200.0030.04718.08
5.6.190.0030.04320.64
5.6.180.3770.04320.39
5.6.170.0200.08320.45
5.6.160.0070.05020.52
5.6.150.0100.04718.18
5.6.140.0030.08718.16
5.6.130.0000.04718.10
5.6.120.0070.08021.04
5.6.110.0070.06321.00
5.6.100.0070.08721.13
5.6.90.0170.08020.96
5.6.80.0070.08020.37
5.6.70.4430.03720.36
5.5.350.0130.07720.38
5.5.340.0070.06718.00
5.5.330.0070.09020.36
5.5.320.0200.04320.31
5.5.310.0230.04020.29
5.5.300.0070.03318.02
5.5.290.0100.05017.96
5.5.280.0030.05320.76
5.5.270.0070.05720.92
5.5.260.0130.06320.79
5.5.250.0000.08020.53
5.5.240.0170.04320.14
5.4.450.0270.07719.39
5.4.440.0200.07719.46
5.4.430.0200.03719.45
5.4.420.0270.05719.45
5.4.410.0230.06719.32
5.4.400.0300.06719.09
5.4.390.0300.06019.09
5.4.380.0300.03719.25
5.4.370.0270.07319.25
5.4.360.0200.06719.09
5.4.350.0270.06719.08
5.4.340.0200.06319.09
5.4.320.0230.07318.93
5.4.310.0370.06319.08
5.4.300.0270.07019.20
5.4.290.0270.04719.13
5.4.280.0200.05019.13
5.4.270.0230.07018.79
5.4.260.0300.04719.06
5.4.250.0270.06019.15
5.4.240.0270.07319.13
5.4.230.0230.08018.80
5.4.220.0130.05019.05
5.4.210.0200.04319.05
5.4.200.0270.07019.23
5.4.190.0330.05019.07
5.4.180.0300.05019.07
5.4.170.0230.07719.08
5.4.160.0270.07718.76
5.4.150.0330.04719.04
5.4.140.0270.07016.55
5.4.130.0200.07316.34
5.4.120.0230.04716.43
5.4.110.0230.06716.36
5.4.100.0270.06716.41
5.4.90.0330.03316.39
5.4.80.0270.06316.20
5.4.70.0230.05016.05
5.4.60.0300.05716.17
5.4.50.0300.04016.20
5.4.40.0270.06016.18
5.4.30.0300.04716.38
5.4.20.0170.06716.38
5.4.10.0230.04716.18
5.4.00.0200.06715.76
5.3.290.0200.04714.61
5.3.280.0170.04014.45
5.3.270.0200.05314.46
5.3.260.0230.05314.56
5.3.250.0230.07014.45
5.3.240.0270.06014.43
5.3.230.0200.07714.45
5.3.220.0200.06014.51
5.3.210.0170.06014.52
5.3.200.0200.06014.55
5.3.190.0130.04314.51
5.3.180.0130.05014.38
5.3.170.0270.07014.41
5.3.160.0300.07014.44
5.3.150.0200.07014.41
5.3.140.0300.04014.40
5.3.130.0200.06014.57
5.3.120.0170.08014.39
5.3.110.0230.04714.38
5.3.100.0170.04713.88
5.3.90.0130.06313.86
5.3.80.0230.04313.97
5.3.70.0370.07013.95
5.3.60.0230.07013.86
5.3.50.0300.03713.78
5.3.40.0170.03713.89
5.3.30.0130.04013.77
5.3.20.0130.03713.62
5.3.10.0100.03713.43
5.3.00.0100.04013.58
5.2.170.0170.03312.46
5.2.160.0100.03312.46
5.2.150.0170.02712.46
5.2.140.0100.04012.46
5.2.130.0070.03312.46
5.2.120.0100.03712.46
5.2.110.0100.03012.46
5.2.100.0130.03012.46
5.2.90.0130.03012.46
5.2.80.0200.02712.46
5.2.70.0170.02712.46
5.2.60.0100.03712.46
5.2.50.0170.04712.46
5.2.40.0100.03012.46
5.2.30.0100.02712.46
5.2.20.0030.03312.46
5.2.10.0130.02712.46
5.2.00.0170.02012.46
5.1.60.0170.01712.46
5.1.50.0130.02712.46
5.1.40.0100.02312.46
5.1.30.0070.02712.46
5.1.20.0130.02312.46
5.1.10.0070.02712.46
5.1.00.0130.02012.46
5.0.50.0070.02012.46
5.0.40.0030.02012.46
5.0.30.0030.03312.46
5.0.20.0070.01712.46
5.0.10.0030.02012.46
5.0.00.0070.02712.46
4.4.90.0030.01712.46
4.4.80.0030.02312.46
4.4.70.0070.01312.46
4.4.60.0070.01712.46
4.4.50.0030.01712.46
4.4.40.0030.02712.46
4.4.30.0000.02012.46
4.4.20.0070.01312.46
4.4.10.0070.01712.46
4.4.00.0030.02712.46
4.3.110.0030.01712.46
4.3.100.0030.01712.46
4.3.90.0070.01312.46
4.3.80.0070.02312.46
4.3.70.0030.01712.46
4.3.60.0070.01312.46
4.3.50.0030.02712.46
4.3.40.0030.02312.46
4.3.30.0000.01712.46
4.3.20.0000.02012.46
4.3.10.0000.01712.46
4.3.00.0000.01712.46