3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"\u0000": true}'; var_dump(json_decode($json, true), json_last_error_msg()); var_dump(json_decode($json), json_last_error_msg());

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.5.30.0080.00917.46
8.5.20.0140.00320.19
8.5.10.0080.00720.17
8.5.00.0120.00919.96
8.4.180.0130.00819.56
8.4.170.0120.00923.91
8.4.160.0170.00723.81
8.4.150.0080.00516.80
8.4.140.0140.00717.60
8.4.130.0130.00817.77
8.4.120.0130.00720.69
8.4.110.0120.00718.84
8.4.100.0140.00618.30
8.4.90.0130.00918.82
8.4.80.0120.00818.51
8.4.70.0060.00217.89
8.4.60.0110.01018.47
8.4.50.0090.00820.39
8.4.40.0070.01317.31
8.4.30.0080.00017.61
8.4.20.0130.00317.82
8.4.10.0100.00017.26
8.3.300.0070.01320.84
8.3.290.0050.00420.71
8.3.280.0060.01418.17
8.3.270.0140.00816.33
8.3.260.0130.00716.73
8.3.250.0120.00718.67
8.3.240.0120.00716.46
8.3.230.0050.00716.40
8.3.220.0060.00218.64
8.3.210.0120.00718.18
8.3.200.0060.00316.48
8.3.190.0080.00716.85
8.3.180.0130.00916.66
8.3.170.0070.01117.18
8.3.160.0000.01018.36
8.3.150.0120.00818.38
8.3.140.0100.00017.20
8.3.130.0190.00318.40
8.3.120.0050.00319.06
8.3.110.0040.01116.26
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0040.00417.97
8.3.70.0150.00616.38
8.3.60.0120.00616.63
8.3.50.0120.00921.94
8.3.40.0090.00618.37
8.3.30.0030.01218.58
8.3.20.0040.00420.16
8.3.10.0090.00020.34
8.3.00.0000.00820.52
8.2.300.0160.00318.12
8.2.290.0110.00820.47
8.2.280.0100.00618.15
8.2.270.0180.00017.40
8.2.260.0040.00416.27
8.2.250.0040.00416.56
8.2.240.0070.00316.91
8.2.230.0040.00420.94
8.2.220.0060.00337.54
8.2.210.0070.00026.77
8.2.200.0030.00618.54
8.2.190.0150.00616.58
8.2.180.0070.01416.50
8.2.170.0140.00322.96
8.2.160.0070.01020.33
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0080.00019.23
8.2.120.0070.00026.35
8.2.110.0070.00322.33
8.2.100.0110.00017.59
8.2.90.0030.00517.90
8.2.80.0060.00318.04
8.2.70.0090.00617.34
8.2.60.0060.00317.80
8.2.50.0090.00018.09
8.2.40.0000.00820.63
8.2.30.0040.00419.49
8.2.20.0040.00417.49
8.2.10.0040.00417.91
8.2.00.0040.00417.86
8.1.340.0080.01119.56
8.1.330.0120.00722.03
8.1.320.0100.00916.19
8.1.310.0100.00718.29
8.1.300.0060.00320.30
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0040.00423.87
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0060.00322.34
8.1.230.0060.00620.96
8.1.220.0000.00917.74
8.1.210.0000.00818.84
8.1.200.0060.00317.35
8.1.190.0090.00017.11
8.1.180.0080.00018.10
8.1.170.0070.00418.42
8.1.160.0000.00720.88
8.1.150.0000.00718.73
8.1.140.0080.00019.44
8.1.130.0030.00317.62
8.1.120.0030.00317.29
8.1.110.0060.00317.39
8.1.100.0090.00017.39
8.1.90.0030.00517.37
8.1.80.0070.00017.42
8.1.70.0030.00517.43
8.1.60.0040.00417.46
8.1.50.0040.00417.45
8.1.40.0000.01017.33
8.1.30.0030.00517.51
8.1.20.0040.00417.54
8.1.10.0000.00717.48
8.1.00.0030.00617.35
8.0.300.0040.00419.86
8.0.290.0000.00916.75
8.0.280.0070.00018.43
8.0.270.0040.00417.18
8.0.260.0040.00417.10
8.0.250.0000.00816.91
8.0.240.0060.00016.94
8.0.230.0030.00316.80
8.0.220.0030.00316.82
8.0.210.0060.00316.79
8.0.200.0070.00016.84
8.0.190.0040.00416.90
8.0.180.0040.00716.91
8.0.170.0040.00416.89
8.0.160.0000.00716.84
8.0.150.0070.00016.77
8.0.140.0040.00416.75
8.0.130.0000.00513.27
8.0.120.0000.01016.80
8.0.110.0000.00716.88
8.0.100.0070.00016.77
8.0.90.0070.00016.71
8.0.80.0000.01516.79
8.0.70.0000.00816.78
8.0.60.0000.00716.71
8.0.50.0070.00016.68
8.0.30.0110.00816.83
8.0.20.0120.00717.40
8.0.10.0040.00416.90
8.0.00.0070.01116.72
7.4.330.0020.00215.08
7.4.320.0030.00316.55
7.4.300.0000.00616.38
7.4.290.0040.00416.45
7.4.280.0040.00416.49
7.4.270.0040.00416.48
7.4.260.0030.00516.31
7.4.250.0050.00316.41
7.4.240.0040.00416.34
7.4.230.0070.00016.59
7.4.220.0040.01416.55
7.4.210.0100.00716.45
7.4.200.0000.00716.36
7.4.160.0090.00616.26
7.4.150.0100.01317.40
7.4.140.0080.01117.86
7.4.130.0090.00816.50
7.4.120.0100.01116.38
7.4.110.0070.01016.30
7.4.100.0090.00916.36
7.4.90.0060.01216.41
7.4.80.0140.00319.39
7.4.70.0080.00816.44
7.4.60.0100.00616.39
7.4.50.0000.01116.02
7.4.40.0030.01816.50
7.4.30.0040.01116.33
7.4.00.0040.01214.79
7.3.330.0030.00312.99
7.3.320.0000.00513.01
7.3.310.0000.00716.06
7.3.300.0070.00015.97
7.3.290.0080.00716.11
7.3.280.0120.00716.15
7.3.270.0080.00817.40
7.3.260.0100.01316.13
7.3.250.0120.00616.32
7.3.240.0060.01116.24
7.3.230.0140.00316.39
7.3.210.0060.01016.17
7.3.200.0120.00919.39
7.3.190.0030.01216.39
7.3.180.0120.00916.05
7.3.170.0190.00316.31
7.3.160.0090.00616.45
7.2.330.0070.01116.28
7.2.320.0060.01816.42
7.2.310.0100.00716.60
7.2.300.0060.01616.37
7.2.290.0060.00916.34
7.2.60.0030.01316.76
7.2.00.0040.00819.18
7.1.200.0070.00715.62
7.1.100.0000.01117.98
7.1.70.0000.00917.25
7.1.60.0170.00719.19
7.1.50.0000.02116.55
7.1.00.0070.07322.32
7.0.200.0360.00714.61
7.0.60.0030.06021.81
7.0.50.0130.07317.91
7.0.40.0130.08020.05
7.0.30.0300.08320.16
7.0.20.0300.04020.29
7.0.10.0100.08020.16
7.0.00.0070.04020.00
5.6.280.0030.07320.92
5.6.210.0070.08320.46
5.6.200.0030.05018.22
5.6.190.0070.08320.58
5.6.180.0300.07320.41
5.6.170.0170.07020.41
5.6.160.0100.03720.52
5.6.150.0000.05718.09
5.6.140.0100.06718.15
5.6.130.0070.05318.10
5.6.120.0170.06321.09
5.6.110.0130.03321.03
5.6.100.0200.04720.87
5.6.90.0000.04720.85
5.6.80.0000.04320.28
5.5.350.0030.07320.32
5.5.340.0030.04718.02
5.5.330.0130.07020.25
5.5.320.0170.04720.19
5.5.310.0230.05020.30
5.5.300.0230.04718.02
5.5.290.0030.04018.02
5.5.280.0100.07720.95
5.5.270.0170.08020.96
5.5.260.0000.08020.75
5.5.250.0030.04320.77
5.5.240.0100.04020.36

preferences:
47.3 ms | 1504 KiB | 5 Q