3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "fruits" => [ "apple" => ["taste" => "sweet", "colour" => "yellow"], "banana" => ["taste" => "sour", "colour" => "green"], "cherry" => ["taste" => "sweet", "color" => "red"] ], "vegetables" => "yuck" ]; $str = json_encode($arr); $decode = json_decode($str, true,4); 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.40.0090.00618.79
8.3.30.0140.00018.54
8.3.20.0040.00419.04
8.3.10.0070.00023.52
8.3.00.0040.00420.77
8.2.170.0120.00622.96
8.2.160.0100.00322.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00018.03
8.2.120.0070.00026.35
8.2.110.0030.00620.98
8.2.100.0100.00017.72
8.2.90.0040.00419.44
8.2.80.0060.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00418.22
8.2.50.0030.00518.10
8.2.40.0040.00419.32
8.2.30.0030.00319.24
8.2.20.0000.00818.05
8.2.10.0030.00518.11
8.2.00.0000.00817.66
8.1.270.0050.00319.00
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00422.46
8.1.230.0110.00020.97
8.1.220.0080.00017.74
8.1.210.0000.00818.85
8.1.200.0050.00317.23
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0000.00818.53
8.1.160.0030.00518.75
8.1.150.0050.00218.74
8.1.140.0030.00322.14
8.1.130.0020.00520.21
8.1.120.0030.00417.37
8.1.110.0080.00017.28
8.1.100.0040.00417.41
8.1.90.0040.00417.44
8.1.80.0000.00817.39
8.1.70.0000.00817.42
8.1.60.0000.00817.57
8.1.50.0030.00617.45
8.1.40.0030.00517.41
8.1.30.0000.00817.57
8.1.20.0090.00017.59
8.1.10.0040.00417.48
8.1.00.0050.00517.42
8.0.300.0070.00019.90
8.0.290.0060.00316.75
8.0.280.0000.00718.42
8.0.270.0030.00317.16
8.0.260.0030.00318.44
8.0.250.0070.00016.99
8.0.240.0040.00416.84
8.0.230.0000.00616.92
8.0.220.0040.00416.76
8.0.210.0020.00516.81
8.0.200.0050.00216.81
8.0.190.0000.00916.80
8.0.180.0040.00416.74
8.0.170.0040.00416.80
8.0.160.0070.00016.89
8.0.150.0080.00016.80
8.0.140.0040.00316.69
8.0.130.0030.00313.25
8.0.120.0040.00416.82
8.0.110.0040.00416.88
8.0.100.0050.00316.75
8.0.90.0000.00716.79
8.0.80.0100.00516.76
8.0.70.0040.00416.81
8.0.60.0030.00516.62
8.0.50.0040.00416.71
8.0.30.0120.00816.91
8.0.20.0090.00917.40
8.0.10.0020.00516.98
8.0.00.0120.00616.63
7.4.330.0050.00015.55
7.4.320.0060.00016.35
7.4.300.0030.00316.29
7.4.290.0030.00316.51
7.4.280.0030.00616.43
7.4.270.0030.00316.45
7.4.260.0040.00416.49
7.4.250.0050.00316.49
7.4.240.0040.00416.43
7.4.230.0000.00716.53
7.4.220.0000.00916.37
7.4.210.0060.00816.47
7.4.200.0050.00216.62
7.4.160.0090.00716.45
7.4.140.0110.00717.86
7.4.130.0130.00416.18
7.4.120.0060.01216.40
7.4.110.0090.00916.45
7.4.100.0070.01116.46
7.4.90.0110.00616.38
7.4.80.0100.01017.75
7.4.70.0060.01216.22
7.4.60.0060.01016.31
7.4.50.0090.00816.26
7.4.40.0080.00816.34
7.4.30.0080.00816.37
7.4.20.0100.00816.23
7.4.10.0090.00916.38
7.4.00.0080.01116.29
7.3.330.0000.00513.03
7.3.320.0030.00313.00
7.3.310.0030.00616.18
7.3.300.0070.00016.04
7.3.290.0070.00016.12
7.3.280.0060.00816.09
7.3.260.0130.00716.37
7.3.240.0100.00916.17
7.3.230.0130.00316.41
7.3.220.0130.00716.12
7.3.210.0080.00816.26
7.3.200.0100.00816.26
7.3.190.0090.01016.35
7.3.180.0080.00916.29
7.3.170.0090.00916.18
7.3.160.0090.00716.22
7.3.150.0080.00916.25
7.3.140.0100.00816.22
7.3.130.0070.01016.16
7.3.120.0110.00516.28
7.3.110.0100.00916.25
7.3.100.0090.00716.19
7.3.90.0150.00215.88
7.3.80.0100.00716.26
7.3.70.0060.01316.27
7.3.60.0160.00416.30
7.3.50.0080.00816.11
7.3.40.0090.01016.15
7.3.30.0110.00616.18
7.3.20.0100.01216.16
7.3.10.0110.00816.08
7.3.00.0200.01216.10
7.2.330.0080.01116.49
7.2.320.0130.01016.40
7.2.310.0080.01016.39
7.2.300.0080.00916.56
7.2.290.0120.00616.43
7.2.280.0100.00616.47
7.2.270.0070.01116.28
7.2.260.0090.00816.45
7.2.250.0070.01116.32
7.2.240.0040.01316.46
7.2.230.0060.01116.43
7.2.220.0110.00816.42
7.2.210.0090.01116.52
7.2.200.0120.00916.48
7.2.190.0040.01616.41
7.2.180.0100.00816.35
7.2.170.0090.00916.42
7.2.160.0090.01416.38
7.2.150.0110.00916.47
7.2.140.0180.00416.47
7.2.130.0120.00716.39
7.2.120.0110.01016.56
7.2.110.0070.01216.51
7.2.100.0120.00716.44
7.2.90.0090.00916.45
7.2.80.0120.00616.27
7.2.70.0150.00416.33
7.2.60.0090.01216.40
7.2.50.0090.01316.36
7.2.40.0160.00916.42
7.2.30.0080.01416.45
7.2.20.0100.00816.37
7.2.10.0060.01516.32
7.2.00.0070.01216.33
7.1.330.0090.00915.50
7.1.320.0070.01115.52
7.1.310.0130.00715.43
7.1.300.0110.00615.38
7.1.290.0090.01215.50
7.1.280.0100.00715.48
7.1.270.0080.01015.51
7.1.260.0080.01215.56
7.1.250.0080.00915.44
7.1.240.0110.00815.53
7.1.230.0110.00715.32
7.1.220.0120.01015.37
7.1.210.0130.00615.36
7.1.200.0060.00915.41
7.1.190.0090.01115.40
7.1.180.0080.01115.36
7.1.170.0120.00615.31
7.1.160.0110.00615.33
7.1.150.0110.01015.42
7.1.140.0120.00615.48
7.1.130.0110.00515.48
7.1.120.0060.01115.46
7.1.110.0100.00515.52
7.1.100.0040.01215.38
7.1.90.0100.01015.41
7.1.80.0090.00815.38
7.1.70.0140.00515.48
7.1.60.0070.01115.54
7.1.50.0120.00615.50
7.1.40.0090.00615.40
7.1.30.0300.00615.38
7.1.20.0080.00715.49
7.1.10.0070.01015.50
7.1.00.0090.01115.46
7.0.330.0070.01015.05
7.0.320.0120.01015.19
7.0.310.0180.00315.16
7.0.300.0160.01015.09
7.0.290.0090.01315.04
7.0.280.0130.00915.20
7.0.270.0120.00915.22
7.0.260.0170.00615.04
7.0.250.0120.00815.30
7.0.240.0160.00515.21
7.0.230.0140.00715.28
7.0.220.0130.00815.12
7.0.210.0060.01315.09
7.0.200.0130.01115.17
7.0.190.0130.00815.15
7.0.180.0160.00715.05
7.0.170.0090.01615.20
7.0.160.0150.00615.27
7.0.150.0170.00415.07
7.0.140.0160.00915.15
7.0.130.0130.01415.14
7.0.120.0140.01115.11
7.0.110.0050.01115.16
7.0.100.0110.00415.21
7.0.90.0090.00615.16
7.0.80.0060.01015.23
7.0.70.0090.00915.06
7.0.60.0070.00815.16
7.0.50.0080.01215.14
7.0.40.0080.01115.09
7.0.30.0040.01315.25
7.0.20.0160.00515.01
7.0.10.0080.01115.06
7.0.00.0100.00514.98
5.6.400.0100.01115.98
5.6.390.0040.01315.69
5.6.380.0090.01415.92
5.6.370.0160.00715.99
5.6.360.0160.01016.06
5.6.350.0140.00815.71
5.6.340.0090.01415.88
5.6.330.0130.01315.79
5.6.320.0140.01015.77
5.6.310.0200.00615.85
5.6.300.0140.01015.93
5.6.290.0140.01215.79
5.6.280.0160.01415.97
5.6.270.0110.01415.88
5.6.260.0130.00915.86
5.6.250.0080.01115.68
5.6.240.0080.01115.87
5.6.230.0040.01415.82
5.6.220.0090.00915.86
5.6.210.0080.01015.74
5.6.200.0090.01315.87
5.6.190.0090.00815.84
5.6.180.0130.00515.79
5.6.170.0070.01215.79
5.6.160.0080.01015.81
5.6.150.0110.00715.98
5.6.140.0110.00815.89
5.6.130.0100.00815.78
5.6.120.0110.01015.98
5.6.110.0080.01215.90
5.6.100.0090.00915.97
5.6.90.0110.00815.71
5.6.80.0090.01115.80
5.6.70.0120.00815.93
5.6.60.0060.01215.76
5.6.50.0030.01715.56
5.6.40.0110.01015.84
5.6.30.0060.01415.74
5.6.20.0080.01415.54
5.6.10.0130.01015.80
5.6.00.0090.01215.55

preferences:
57.63 ms | 400 KiB | 5 Q