3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonStr = '{"fieldValue":"This field contains \"double quote\""}'; $jsonStr = addslashes($jsonStr); $jsonArr = json_decode($jsonStr, true); echo 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.3.60.0090.00918.06
8.3.50.0120.00317.96
8.3.40.0080.00818.75
8.3.30.0150.00018.59
8.3.20.0080.00018.88
8.3.10.0060.00320.92
8.3.00.0030.00523.67
8.2.180.0130.00618.38
8.2.170.0090.00922.96
8.2.160.0070.00720.52
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00019.42
8.2.120.0080.00026.35
8.2.110.0030.00621.13
8.2.100.0060.00617.91
8.2.90.0040.00419.10
8.2.80.0040.00418.03
8.2.70.0000.00817.91
8.2.60.0050.00318.04
8.2.50.0040.00418.10
8.2.40.0030.00619.24
8.2.30.0040.00419.47
8.2.20.0000.00818.05
8.2.10.0000.00819.89
8.2.00.0000.00719.42
8.1.270.0000.00921.90
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00322.54
8.1.230.0040.00717.70
8.1.220.0030.00617.78
8.1.210.0030.00518.77
8.1.200.0030.00617.36
8.1.190.0030.00616.99
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0000.00718.88
8.1.150.0040.00418.81
8.1.140.0050.00319.37
8.1.130.0030.00319.05
8.1.120.0000.00717.39
8.1.110.0030.00517.39
8.1.100.0030.00617.38
8.1.90.0040.00417.41
8.1.80.0000.00717.43
8.1.70.0000.00817.27
8.1.60.0030.00617.46
8.1.50.0060.00317.41
8.1.40.0000.00817.46
8.1.30.0050.00517.62
8.1.20.0040.00417.58
8.1.10.0090.00017.45
8.1.00.0080.00017.33
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.45
8.0.270.0050.00217.14
8.0.260.0030.00317.11
8.0.250.0040.00417.00
8.0.240.0000.00816.95
8.0.230.0050.00416.87
8.0.220.0000.00716.78
8.0.210.0000.00716.86
8.0.200.0000.00716.88
8.0.190.0080.00016.92
8.0.180.0040.00416.77
8.0.170.0030.00616.83
8.0.160.0000.00816.78
8.0.150.0000.00816.82
8.0.140.0000.00716.66
8.0.130.0030.00313.29
8.0.120.0040.00416.78
8.0.110.0070.00016.70
8.0.100.0040.00416.86
8.0.90.0030.00316.80
8.0.80.0090.00616.71
8.0.70.0050.00316.88
8.0.60.0000.00716.94
8.0.50.0080.00016.76
8.0.30.0110.01016.92
8.0.20.0080.01117.40
8.0.10.0000.00817.02
8.0.00.0130.00616.72
7.4.330.0000.00515.55
7.4.320.0030.00316.34
7.4.300.0060.00016.57
7.4.290.0000.00816.48
7.4.280.0000.00916.41
7.4.270.0000.00716.52
7.4.260.0080.00016.43
7.4.250.0000.00816.48
7.4.240.0000.00716.29
7.4.230.0030.00316.53
7.4.220.0030.00516.48
7.4.210.0090.00516.52
7.4.200.0030.00316.50
7.4.160.0090.00716.50
7.4.140.0100.00917.86
7.4.130.0090.00916.46
7.4.120.0120.00916.46
7.4.110.0070.01016.47
7.4.100.0100.00616.49
7.4.90.0140.00616.53
7.4.80.0090.01019.39
7.4.70.0090.00916.29
7.4.60.0130.00316.61
7.4.50.0100.00716.24
7.4.40.0040.01416.44
7.4.10.0020.01614.79
7.4.00.0060.01214.81
7.3.330.0050.00013.00
7.3.320.0060.00013.07
7.3.310.0030.00316.06
7.3.300.0030.00315.96
7.3.290.0030.00316.11
7.3.280.0100.00716.11
7.3.260.0110.00716.35
7.3.240.0110.00716.30
7.3.230.0060.01116.36
7.3.210.0070.01616.24
7.3.200.0130.00316.52
7.3.190.0110.00816.47
7.3.180.0050.01116.05
7.3.170.0070.01016.39
7.3.160.0100.00616.24
7.3.130.0030.01514.62
7.3.120.0080.01114.81
7.3.110.0040.01414.68
7.3.100.0080.00714.70
7.3.90.0070.00714.71
7.3.80.0050.00914.78
7.3.70.0070.00514.81
7.3.60.0090.00614.60
7.3.50.0020.01314.54
7.3.40.0030.00714.53
7.3.30.0060.00514.57
7.3.20.0080.00616.32
7.3.10.0100.00416.70
7.3.00.0050.00716.58
7.2.330.0140.00316.39
7.2.320.0070.01016.61
7.2.310.0060.01216.61
7.2.300.0100.01016.25
7.2.290.0110.00716.34
7.2.260.0030.01115.02
7.2.250.0080.01015.13
7.2.240.0080.00814.97
7.2.230.0060.01114.91
7.2.220.0090.00814.91
7.2.210.0030.00914.85
7.2.200.0050.00814.96
7.2.190.0030.01014.81
7.2.180.0060.00514.80
7.2.170.0050.00714.87
7.2.160.0080.00614.92
7.2.150.0080.00616.93
7.2.140.0060.00916.80
7.2.130.0080.00416.68
7.2.120.0050.00916.84
7.2.110.0070.00816.78
7.2.100.0060.00716.76
7.2.90.0070.00716.88
7.2.80.0090.00816.71
7.2.70.0090.00316.92
7.2.60.0110.00716.24
7.2.50.0120.00716.34
7.2.40.0110.00616.17
7.2.30.0140.00716.28
7.2.20.0110.00916.23
7.2.10.0130.00916.24
7.2.00.0120.00616.35
7.1.330.0030.01015.70
7.1.320.0110.00715.77
7.1.310.0060.00615.78
7.1.300.0050.01015.75
7.1.290.0080.00715.63
7.1.280.0080.00515.77
7.1.270.0030.01015.51
7.1.260.0010.01215.70
7.1.250.0070.00515.70
7.1.240.0050.00615.64
7.1.230.0000.01115.58
7.1.220.0060.00515.76
7.1.210.0020.01215.71
7.1.200.0080.00515.77
7.1.190.0070.00715.76
7.1.180.0060.00615.66
7.1.170.0080.01015.14
7.1.160.0070.01315.00
7.1.150.0130.00514.92
7.1.140.0150.00814.85
7.1.130.0120.01014.95
7.1.120.0090.01014.95
7.1.110.0070.01114.91
7.1.100.0130.00714.94
7.1.90.0150.00314.83
7.1.80.0090.00515.03
7.1.70.0080.00715.08
7.1.60.0120.01221.04
7.1.50.0230.01120.99
7.1.40.0340.00820.97
7.1.30.0190.00620.91
7.1.20.0170.00620.98
7.1.10.0020.01314.91
7.1.00.0070.00915.05
7.0.330.0050.00915.14
7.0.320.0050.01015.26
7.0.310.0080.00515.24
7.0.300.0050.00915.27
7.0.290.0110.00515.26
7.0.280.0050.00715.24
7.0.270.0060.00615.40
7.0.260.0020.01115.17
7.0.250.0020.01215.45
7.0.240.0030.01015.28
7.0.230.0050.01115.36
7.0.220.0070.00715.31
7.0.210.0090.00415.24
7.0.200.0050.00715.01
7.0.190.0110.00215.42
7.0.180.0040.00915.30
7.0.170.0050.00915.27
7.0.160.0050.00915.26
7.0.150.0020.00815.38
7.0.140.0050.00915.33
7.0.130.0090.00315.32
7.0.120.0060.00615.33
7.0.110.0060.00815.35
7.0.100.0060.00915.44
7.0.90.0060.00815.24
7.0.80.0070.00415.36
7.0.70.0040.00715.35
7.0.60.0050.00815.35
7.0.50.0050.01115.62
7.0.40.0080.00613.36
7.0.30.0040.00713.51
7.0.20.0060.00613.18
7.0.10.0030.00613.43
7.0.00.0060.00513.20
5.6.400.0050.00614.13
5.6.390.0050.00714.17
5.6.380.0030.00614.52
5.6.370.0070.00714.06
5.6.360.0040.00814.28
5.6.350.0080.00714.48
5.6.340.0060.00514.46
5.6.330.0070.00714.27
5.6.320.0060.00914.16
5.6.310.0090.00314.34
5.6.300.0070.00614.35
5.6.290.0000.01314.33
5.6.280.0080.00514.11
5.6.270.0050.00714.23
5.6.260.0020.01114.17
5.6.250.0090.00314.22
5.6.240.0080.00614.13
5.6.230.0000.01114.09
5.6.220.0020.01114.15
5.6.210.0040.00814.12
5.6.200.0040.00914.17
5.6.190.0070.00614.23
5.6.180.0050.00913.98
5.6.170.0000.01314.29
5.6.160.0030.01014.11
5.6.150.0050.01014.12
5.6.140.0070.00514.28
5.6.130.0040.00914.19
5.6.120.0020.01214.21
5.6.110.0040.00714.24
5.6.100.0040.00814.20
5.6.90.0030.00714.12
5.6.80.0090.00414.07
5.6.70.0050.00914.04
5.6.60.0020.01014.12
5.6.50.0030.00814.12
5.6.40.0070.00514.09
5.6.30.0050.00614.01
5.6.20.0060.00514.00
5.6.10.0060.00813.91
5.6.00.0020.00714.09

preferences:
51.38 ms | 400 KiB | 5 Q