3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON [ {"foo":"bar"}, {"foo":"baz"} ] JSON; var_dump(json_decode($json)); var_dump(json_decode($json, true));

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)
8.3.60.0040.01116.50
8.3.50.0140.00821.98
8.3.40.0070.00718.79
8.3.30.0150.00018.86
8.3.20.0040.00420.21
8.3.10.0090.00021.89
8.3.00.0080.00019.23
8.2.180.0200.00316.50
8.2.170.0140.00022.96
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0050.00321.07
8.2.110.0030.00619.35
8.2.100.0110.00017.63
8.2.90.0080.00019.22
8.2.80.0050.00517.97
8.2.70.0040.00817.50
8.2.60.0040.00417.80
8.2.50.0060.00618.07
8.2.40.0000.00818.22
8.2.30.0000.00818.05
8.2.20.0000.00717.61
8.2.10.0080.00018.02
8.2.00.0090.00017.98
8.1.280.0070.01025.92
8.1.270.0060.00320.23
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.93
8.1.230.0110.00018.72
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0060.00320.44
8.1.160.0040.00421.98
8.1.150.0040.00418.77
8.1.140.0000.00717.25
8.1.130.0030.00317.80
8.1.120.0000.00717.47
8.1.110.0000.00717.27
8.1.100.0040.00417.31
8.1.90.0000.00817.41
8.1.80.0000.00817.27
8.1.70.0050.00317.38
8.1.60.0000.00817.40
8.1.50.0040.00417.46
8.1.40.0060.00317.48
8.1.30.0040.00417.61
8.1.20.0040.00417.57
8.1.10.0000.00717.39
8.1.00.0070.00017.39
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0000.00718.42
8.0.270.0040.00417.06
8.0.260.0000.00617.19
8.0.250.0040.00416.96
8.0.240.0030.00316.94
8.0.230.0050.00316.93
8.0.220.0080.00016.93
8.0.210.0050.00216.80
8.0.200.0030.00316.84
8.0.190.0000.00716.93
8.0.180.0070.00016.79
8.0.170.0040.00416.89
8.0.160.0040.00416.78
8.0.150.0000.00716.82
8.0.140.0070.00016.85
8.0.130.0060.00013.29
8.0.120.0000.00816.87
8.0.110.0070.00016.88
8.0.100.0070.00016.88
8.0.90.0040.00416.76
8.0.80.0040.01216.85
8.0.70.0040.00416.71
8.0.60.0060.00316.77
8.0.50.0070.00016.76
8.0.30.0130.00617.08
8.0.20.0060.01217.40
8.0.10.0000.00716.99
8.0.00.0110.00916.68
7.4.330.0050.00015.03
7.4.320.0000.00616.42
7.4.300.0030.00316.48
7.4.290.0040.00416.58
7.4.280.0040.00416.43
7.4.270.0060.00016.52
7.4.260.0030.00616.48
7.4.250.0040.00416.50
7.4.240.0040.00316.46
7.4.230.0070.00016.36
7.4.220.0100.01116.56
7.4.210.0100.01016.64
7.4.200.0070.00016.19
7.4.160.0000.01516.56
7.4.150.0070.01017.40
7.4.140.0060.01217.86
7.4.130.0160.00516.37
7.4.120.0040.01416.48
7.4.110.0030.01416.44
7.4.100.0210.00316.49
7.4.90.0190.00016.52
7.4.80.0120.00919.39
7.4.70.0180.00316.36
7.4.60.0090.00916.54
7.4.50.0040.00416.03
7.4.40.0030.01416.36
7.4.30.0160.00316.58
7.4.00.0050.00915.00
7.3.330.0030.00213.18
7.3.320.0000.00613.07
7.3.310.0040.00416.33
7.3.300.0030.00316.24
7.3.290.0020.01116.20
7.3.280.0120.00716.22
7.3.270.0100.01017.40
7.3.260.0160.00516.30
7.3.250.0090.01016.33
7.3.240.0150.00316.29
7.3.230.0080.01216.39
7.3.210.0030.01316.25
7.3.200.0100.00719.39
7.3.190.0080.00916.21
7.3.180.0080.00816.25
7.3.170.0070.01416.27
7.3.160.0080.00816.38
7.3.120.0070.01114.63
7.3.110.0000.01814.58
7.3.100.0070.01014.82
7.3.90.0110.00314.56
7.3.80.0060.00914.70
7.3.70.0120.00614.82
7.3.60.0000.01714.65
7.3.50.0060.00914.66
7.3.40.0030.01514.61
7.3.30.0040.01114.59
7.3.20.0070.00716.62
7.3.10.0110.00216.57
7.3.00.0030.00716.35
7.2.330.0060.01316.60
7.2.320.0090.00916.19
7.2.310.0090.00916.49
7.2.300.0040.01716.47
7.2.290.0150.00316.57
7.2.250.0090.01014.73
7.2.240.0110.00714.93
7.2.230.0060.00914.99
7.2.220.0030.01014.98
7.2.210.0100.00614.79
7.2.200.0090.00914.51
7.2.190.0030.01314.75
7.2.180.0060.00914.87
7.2.170.0110.00714.80
7.2.130.0070.00416.16
7.2.120.0070.00316.43
7.2.110.0060.00616.24
7.2.100.0100.00316.78
7.2.90.0090.00616.77
7.2.80.0090.00616.63
7.2.70.0000.01216.46
7.2.60.0030.00916.48
7.2.50.0060.00616.52
7.2.40.0120.00616.56
7.2.30.0050.00516.21
7.2.20.0110.00016.28
7.2.10.0070.00716.32
7.2.00.0020.00917.86
7.1.330.0040.01115.53
7.1.320.0030.01415.69
7.1.310.0070.01015.65
7.1.300.0070.01015.80
7.1.290.0110.00015.64
7.1.280.0060.01315.60
7.1.270.0140.00315.50
7.1.260.0100.00715.79
7.1.250.0030.00615.45
7.1.100.0070.01018.23
7.1.70.0050.00317.11
7.1.60.0100.01419.48
7.1.50.0090.01516.57
7.1.00.0100.06322.31
7.0.200.0000.00716.66
7.0.60.0000.06719.90
7.0.50.0030.08017.79
7.0.40.0100.07020.24
7.0.30.0270.08020.09
7.0.20.0270.06720.09
7.0.10.0100.03720.30
7.0.00.0030.04720.01
5.6.280.0030.07320.89
5.6.210.0070.06720.76
5.6.200.0130.04018.21
5.6.190.0100.04020.60
5.6.180.0300.08320.61
5.6.170.0130.05020.37
5.6.160.0070.04320.38
5.6.150.0100.05318.20
5.6.140.0070.05018.15
5.6.130.0100.03318.18
5.6.120.0000.10321.02
5.6.110.0100.04720.89
5.6.100.0170.07320.96
5.6.90.0030.08020.95
5.6.80.0170.06020.36
5.6.70.4370.03720.41
5.5.350.0300.07320.44
5.5.340.0130.08018.02
5.5.330.0130.06020.21
5.5.320.0470.06720.51
5.5.310.0370.07020.32
5.5.300.0030.05018.04
5.5.290.0100.07017.91
5.5.280.0100.08320.87
5.5.270.0000.04320.71
5.5.260.0130.06020.79
5.5.250.0070.08020.54
5.5.240.0400.06020.23
5.4.450.0870.04319.26
5.4.440.0100.06019.21
5.4.430.0300.04319.62
5.4.420.0070.05719.63
5.4.410.0100.05319.57
5.4.400.0100.05319.20
5.4.390.0130.05319.07
5.4.380.0170.05319.07
5.4.370.0130.05019.16
5.4.360.0030.05719.07
5.4.350.0100.05319.15
5.4.340.0130.05018.96
5.4.320.0100.05318.95
5.4.310.0030.06019.07
5.4.300.0030.05718.92
5.4.290.0100.06319.08
5.4.280.0030.06018.99
5.4.270.0200.04319.17
5.4.260.0070.05719.04
5.4.250.0030.07018.99
5.4.240.0070.05719.13
5.4.230.0030.07018.96
5.4.220.0030.06018.96
5.4.210.0170.06718.96
5.4.200.0070.05016.73
5.4.190.0100.05019.11
5.4.180.0200.07019.03
5.4.170.0130.06018.90
5.4.160.0100.05319.16
5.4.150.0070.05719.10
5.4.140.0100.05316.20
5.4.130.0070.05316.21
5.4.120.0130.05716.21
5.4.110.0130.06716.53
5.4.100.0100.05016.21
5.4.90.0070.05316.22
5.4.80.0200.03716.52
5.4.70.0100.05016.38
5.4.60.0030.06016.19
5.4.50.0100.05016.48
5.4.40.0130.04716.38
5.4.30.0070.05016.50
5.4.20.0100.05016.38
5.4.10.0100.04716.38
5.4.00.0070.05015.97
5.3.290.0070.05714.68
5.3.280.0030.05714.44
5.3.270.0170.04714.45
5.3.260.0070.05714.54
5.3.250.0100.05014.52
5.3.240.0030.05714.63
5.3.230.0130.04714.48
5.3.220.0230.04014.44
5.3.210.0130.05014.55
5.3.200.0070.05314.46
5.3.190.0030.05714.46
5.3.180.0200.04014.39
5.3.170.0100.05014.57
5.3.160.0100.05014.58
5.3.150.0130.04714.50
5.3.140.0070.05314.47
5.3.130.0030.06014.48
5.3.120.0000.06014.38
5.3.110.0130.05014.44
5.3.100.0070.05313.87
5.3.90.0170.04313.96
5.3.80.0100.05014.02
5.3.70.0070.05714.05
5.3.60.0100.05013.94
5.3.50.0170.04713.88
5.3.40.0100.05013.96
5.3.30.0100.06013.89
5.3.20.0100.04713.58
5.3.10.0030.05313.49
5.3.00.0100.04713.50
5.2.170.0130.03710.93
5.2.160.0100.03711.14
5.2.150.0100.04011.24
5.2.140.0000.05011.20
5.2.130.0130.03310.89
5.2.120.0030.04311.06
5.2.110.0100.03711.19
5.2.100.0070.04010.96
5.2.90.0030.04311.05
5.2.80.0130.04310.99
5.2.70.0130.03710.93
5.2.60.0100.04311.16
5.2.50.0070.04710.93
5.2.40.0100.04011.08
5.2.30.0070.04310.87
5.2.20.0100.03711.00
5.2.10.0000.04710.71
5.2.00.0100.03710.62
5.1.60.0070.03310.07
5.1.50.0030.0379.93
5.1.40.0000.03710.01
5.1.30.0100.04010.34
5.1.20.0100.03310.33
5.1.10.0200.03010.05
5.1.00.0070.0379.99
5.0.50.0030.0308.54
5.0.40.0030.0278.48
5.0.30.0130.0378.26
5.0.20.0000.0308.34
5.0.10.0000.0308.05
5.0.00.0030.0438.26
4.4.90.0030.0205.83
4.4.80.0030.0235.79
4.4.70.0100.0175.76
4.4.60.0030.0235.76
4.4.50.0070.0175.88
4.4.40.0030.0375.84
4.4.30.0100.0135.80
4.4.20.0030.0275.86
4.4.10.0070.0275.95
4.4.00.0030.0435.84
4.3.110.0030.0305.83
4.3.100.0070.0175.83
4.3.90.0100.0135.66
4.3.80.0100.0375.76
4.3.70.0030.0305.83
4.3.60.0030.0205.64
4.3.50.0030.0305.77
4.3.40.0030.0435.61
4.3.30.0000.0304.44
4.3.20.0030.0304.50
4.3.10.0000.0304.35
4.3.00.0000.01315.68

preferences:
55.49 ms | 401 KiB | 5 Q