3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; $assoc = true; $result = json_decode ($json, $assoc); print_r $result ?>

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.6.80.0100.04720.43
5.5.240.0230.07020.06
5.4.400.0600.05318.82
5.4.390.0570.05318.80
5.4.380.0330.05318.66
5.4.370.0270.06718.63
5.4.360.0430.04718.72
5.4.350.0330.08018.53
5.4.340.0370.06318.62
5.4.320.0300.06318.55
5.4.310.0200.07318.75
5.4.300.0430.05718.71
5.4.290.0470.06318.53
5.4.280.0500.06318.74
5.4.270.0400.06318.68
5.4.260.0330.06718.77
5.4.250.0370.05018.78
5.4.240.0270.06318.68
5.4.230.0270.05318.73
5.4.220.0300.06018.77
5.4.210.0370.07718.67
5.4.200.0370.07716.67
5.4.190.0530.07318.73
5.4.180.0470.07018.82
5.4.170.0330.07018.72
5.4.160.0330.07018.79
5.4.150.0600.06018.48
5.4.140.0430.07316.21
5.4.130.0230.06016.23
5.4.120.0600.05016.32
5.4.110.0470.04716.21
5.4.100.0300.06016.22
5.4.90.0400.05716.41
5.4.80.0300.05716.21
5.4.70.0370.07016.29
5.4.60.0400.04316.18
5.4.50.0430.04716.22
5.4.40.0500.05716.26
5.4.30.0330.05716.21
5.4.20.0430.05016.24
5.4.10.0470.04016.25
5.4.00.0470.06715.88
5.3.290.0370.07714.75
5.3.280.0430.06714.58
5.3.270.0600.06714.61
5.3.260.0370.07014.66
5.3.250.0430.07014.54
5.3.240.0530.06314.65
5.3.230.0470.05014.50
5.3.220.0430.07014.57
5.3.210.0430.06014.55
5.3.200.0370.06314.62
5.3.190.0400.05714.67
5.3.180.0330.08314.47
5.3.170.0370.07714.66
5.3.160.0530.06714.64
5.3.150.0370.07714.60
5.3.140.0570.06314.47
5.3.130.0370.07014.48
5.3.120.0370.05314.48
5.3.110.0370.06714.60
5.3.100.0470.05314.14
5.3.90.0400.05013.97
5.3.80.0400.04714.05
5.3.70.0400.04714.00
5.3.60.0330.05013.95
5.3.50.0400.04714.04
5.3.40.0330.06013.92
5.3.30.0470.05013.80
5.3.20.0300.07013.67
5.3.10.0300.05713.69
5.3.00.0500.05713.57
5.2.170.0300.05311.29
5.2.160.0270.05311.28
5.2.150.0230.06311.15
5.2.140.0330.05011.05
5.2.130.0300.06011.11
5.2.120.0430.05011.16
5.2.110.0300.04011.08
5.2.100.0400.03711.07
5.2.90.0370.04311.03
5.2.80.0330.04711.14
5.2.70.0130.05311.06
5.2.60.0330.03711.09
5.2.50.0330.04311.02
5.2.40.0400.05011.03
5.2.30.0430.05710.88
5.2.20.0230.05310.99
5.2.10.0230.05010.86
5.2.00.0200.04310.77
5.1.60.0370.03710.01
5.1.50.0400.0339.95
5.1.40.0270.0509.95
5.1.30.0270.05010.43
5.1.20.0330.04010.32
5.1.10.0270.04710.21
5.1.00.0330.04310.13
5.0.50.0100.0408.56
5.0.40.0170.0238.38
5.0.30.0130.0508.27
5.0.20.0100.0378.32
5.0.10.0170.0308.30
5.0.00.0170.0438.19
4.4.90.0170.0307.02
4.4.80.0200.0307.02
4.4.70.0070.0207.02
4.4.60.0030.0237.02
4.4.50.0170.0237.02
4.4.40.0100.0437.02
4.4.30.0200.0177.02
4.4.20.0100.0237.02
4.4.10.0170.0307.02
4.4.00.0170.0337.02
4.3.110.0270.0207.02
4.3.100.0170.0237.02
4.3.90.0200.0207.02
4.3.80.0270.0377.02
4.3.70.0130.0277.02
4.3.60.0170.0277.02
4.3.50.0030.0377.02
4.3.40.0100.0477.02
4.3.30.0070.0277.02
4.3.20.0070.0277.02
4.3.10.0030.0307.02
4.3.00.0030.0206.74

preferences:
142.85 ms | 1394 KiB | 7 Q