3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '["0":"1234","1":"3456","2":"5678","3":"7890"]'; $ids = json_decode($json, true); foreach($ids as $value) { echo $value.PHP_EOL; }
based on I1SuB

Here you find the average performance (time & memory) of each version. A greyed 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.00.0000.01319.10
7.1.100.0040.01417.82
7.1.70.0000.01017.19
7.1.60.0080.00819.46
7.1.50.0090.00616.77
7.1.00.0030.07722.46
7.0.200.0630.01014.77
7.0.140.0030.03322.12
7.0.60.0000.04319.99
7.0.50.0030.04017.66
7.0.40.0130.04720.24
7.0.30.0270.07020.34
7.0.20.0170.04720.12
7.0.10.0070.04019.99
7.0.00.0070.08720.18
5.6.280.0070.07021.02
5.6.210.0000.08020.59
5.6.200.0100.08318.22
5.6.190.0070.07320.32
5.6.180.0230.05320.36
5.6.170.0270.05320.51
5.6.160.0000.07320.54
5.6.150.0130.07718.18
5.6.140.0130.06318.11
5.6.130.0100.08718.16
5.6.120.0130.08321.14
5.6.110.0070.08720.99
5.6.100.0070.08020.96
5.6.90.0130.08321.07
5.6.80.0030.05020.28
5.5.350.0230.06720.40
5.5.340.0070.07318.00
5.5.330.0030.09020.23
5.5.320.0400.08020.17
5.5.310.0170.04720.25
5.5.300.0070.07017.90
5.5.290.0130.07017.98
5.5.280.0070.04020.87
5.5.270.0070.04020.95
5.5.260.0170.07720.84
5.5.250.0030.09020.68
5.5.240.0030.07720.14
5.4.450.0730.07019.14
5.4.440.0100.06019.63
5.4.430.0130.05019.14
5.4.420.0070.05719.68
5.4.410.0100.05319.36
5.4.400.0400.06318.66
5.4.390.0200.06018.50
5.4.380.0230.05718.66
5.4.370.0370.04318.48
5.4.360.0200.06018.69
5.4.350.0200.06718.71
5.4.340.0270.05718.50
5.4.320.0200.05718.83
5.4.310.0230.05718.65
5.4.300.0200.05318.52
5.4.290.0270.05318.74
5.4.280.0270.04718.61
5.4.270.0270.05718.56
5.4.260.0200.06018.71
5.4.250.0270.05318.69
5.4.240.0230.05718.52
5.4.230.0270.05318.70
5.4.220.0370.04318.48
5.4.210.0300.05018.56
5.4.200.0230.05016.48
5.4.190.0270.05018.66
5.4.180.0230.05718.70
5.4.170.0270.05318.55
5.4.160.0170.05718.66
5.4.150.0300.05718.63
5.4.140.0330.04716.24
5.4.130.0200.05316.02
5.4.120.0270.05016.23
5.4.110.0270.04716.26
5.4.100.0200.06016.36
5.4.90.0270.05016.16
5.4.80.0230.05016.15
5.4.70.0230.05316.17
5.4.60.0430.03716.13
5.4.50.0370.03716.08
5.4.40.0270.05016.23
5.4.30.0300.04316.23
5.4.20.0230.05316.21
5.4.10.0200.06716.20
5.4.00.0200.05715.71
5.3.290.0470.06314.61
5.3.280.0330.07014.50
5.3.270.0270.08014.52
5.3.260.0330.07714.69
5.3.250.0530.06314.63
5.3.240.0470.07014.50
5.3.230.0370.07314.59
5.3.220.0330.07314.51
5.3.210.0470.07014.47
5.3.200.0400.05714.65
5.3.190.0330.07014.52
5.3.180.0430.06314.65
5.3.170.0270.07314.52
5.3.160.0130.06314.47
5.3.150.0330.04014.52
5.3.140.0230.05714.48
5.3.130.0230.06314.46
5.3.120.0300.06014.63
5.3.110.0170.06314.47
5.3.100.0300.05013.93
5.3.90.0430.05314.05
5.3.80.0300.05014.11
5.3.70.0300.05714.09
5.3.60.0270.05013.95
5.3.50.0230.04713.90
5.3.40.0170.05313.84
5.3.30.0200.05313.80
5.3.20.0230.05013.68
5.3.10.0300.04313.75
5.3.00.0300.05313.61
5.2.170.0230.04011.29
5.2.160.0170.04711.18
5.2.150.0230.04011.07
5.2.140.0070.05711.09
5.2.130.0130.04711.14
5.2.120.0130.04311.08
5.2.110.0370.04311.14
5.2.100.0300.04711.06
5.2.90.0400.04711.11
5.2.80.0330.05011.05
5.2.70.0270.04011.02
5.2.60.0130.04311.08
5.2.50.0100.04311.02
5.2.40.0070.04310.95
5.2.30.0230.04310.89
5.2.20.0200.03710.99
5.2.10.0270.04311.01
5.2.00.0270.04710.71
5.1.60.0130.05010.00
5.1.50.0170.04710.10
5.1.40.0230.04010.02
5.1.30.0370.04010.38
5.1.20.0270.04310.50
5.1.10.0170.04310.06
5.1.00.0200.04010.08
5.0.50.0070.0278.61
5.0.40.0100.0278.52
5.0.30.0130.0438.38
5.0.20.0070.0308.17
5.0.10.0100.0408.20
5.0.00.0270.0408.19
4.4.90.0200.0205.95
4.4.80.0100.0205.91
4.4.70.0100.0205.87
4.4.60.0070.0235.90
4.4.50.0030.0275.91
4.4.40.0070.0375.86
4.4.30.0170.0135.86
4.4.20.0070.0276.00
4.4.10.0070.0235.92
4.4.00.0070.0375.89
4.3.110.0070.0235.86
4.3.100.0030.0235.86
4.3.90.0070.0235.87
4.3.80.0070.0335.90
4.3.70.0100.0305.86
4.3.60.0130.0275.86
4.3.50.0070.0235.86
4.3.40.0000.0405.86
4.3.30.0030.0275.86
4.3.20.0100.0235.86
4.3.10.0100.0205.86
4.3.00.0170.0276.97