3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; $json_arr = json_decode($json); print $json_arr['a']

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.290.0090.04312.45
5.4.280.0110.06112.34
5.4.270.0070.03812.34
5.4.260.0080.04012.34
5.4.250.0060.04212.34
5.4.240.0090.03412.34
5.4.230.0080.03912.33
5.4.220.0080.03612.34
5.4.210.0070.05212.34
5.4.200.0090.04112.33
5.4.190.0060.03612.33
5.4.180.0090.03612.33
5.4.170.0040.03812.34
5.4.160.0070.03512.34
5.4.150.0060.04212.34
5.4.140.0080.05312.02
5.4.130.0090.04312.01
5.4.120.0120.05311.97
5.4.110.0150.05711.96
5.4.100.0080.04311.96
5.4.90.0100.05111.96
5.4.80.0090.04811.96
5.4.70.0100.04111.96
5.4.60.0090.03811.96
5.4.50.0090.04411.96
5.4.40.0160.04711.95
5.4.30.0090.05211.95
5.4.20.0130.06511.94
5.4.10.0120.06611.95
5.4.00.0110.08011.44
5.3.280.0170.07912.71
5.3.270.0160.05412.73
5.3.260.0150.06512.72
5.3.250.0150.04512.72
5.3.240.0150.06512.72
5.3.230.0050.05312.71
5.3.220.0260.04412.68
5.3.210.0050.06112.68
5.3.200.0090.08012.68
5.3.190.0110.04612.68
5.3.180.0070.05112.68
5.3.170.0120.03212.67
5.3.160.0120.03312.67
5.3.150.0050.04012.68
5.3.140.0040.05112.66
5.3.130.0070.04712.66
5.3.120.0070.05412.66
5.3.110.0100.06512.66
5.3.100.0080.04012.12
5.3.90.0050.04812.09
5.3.80.0080.03812.07
5.3.70.0090.04712.08
5.3.60.0070.04312.07
5.3.50.0120.06812.00
5.3.40.0090.04012.00
5.3.30.0060.04111.95
5.3.20.0090.05411.73
5.3.10.0120.04811.70
5.3.00.0240.07511.68
5.2.170.0150.0599.18
5.2.160.0080.0589.18
5.2.150.0030.0389.18
5.2.140.0070.0379.18
5.2.130.0190.0529.14
5.2.120.0140.0629.14
5.2.110.0110.0689.14
5.2.100.0160.0629.15
5.2.90.0150.0559.14
5.2.80.0050.0319.13
5.2.70.0050.0389.14
5.2.60.0090.0389.09
5.2.50.0080.0699.06
5.2.40.0070.0499.04
5.2.30.0200.0579.01
5.2.20.0110.0549.00
5.2.10.0060.0398.93
5.2.00.0080.0498.78
5.1.60.0040.0358.07
5.1.50.0040.0358.06
5.1.40.0050.0358.05
5.1.30.0050.0278.40
5.1.20.0070.0288.42
5.1.10.0060.0378.14
5.1.00.0040.0298.14
5.0.50.0040.0226.62
5.0.40.0040.0206.48
5.0.30.0060.0416.29
5.0.20.0060.0256.26
5.0.10.0060.0306.24
5.0.00.0060.0296.23
4.4.90.0020.0244.78
4.4.80.0000.0254.75
4.4.70.0050.0204.75
4.4.60.0030.0224.76
4.4.50.0030.0224.77
4.4.40.0060.0304.71
4.4.30.0030.0164.76
4.4.20.0050.0184.84
4.4.10.0030.0234.85
4.4.00.0040.0254.76
4.3.110.0030.0234.67
4.3.100.0040.0214.67
4.3.90.0030.0164.64
4.3.80.0030.0254.59
4.3.70.0040.0164.63
4.3.60.0060.0174.63
4.3.50.0030.0214.62
4.3.40.0050.0394.54
4.3.30.0050.0333.28
4.3.20.0040.0223.26
4.3.10.0020.0183.22
4.3.00.0100.0137.02

preferences:
142.46 ms | 1394 KiB | 7 Q