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,3); 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.0070.00718.43
8.3.50.0060.01218.32
8.3.40.0120.00318.79
8.3.30.0080.00618.57
8.3.20.0000.00719.20
8.3.10.0000.00823.64
8.3.00.0080.00020.67
8.2.180.0150.00618.29
8.2.170.0120.00622.96
8.2.160.0070.00721.99
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00818.03
8.2.120.0080.00026.35
8.2.110.0090.00019.22
8.2.100.0080.00418.22
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0050.00318.03
8.2.60.0070.00018.22
8.2.50.0060.00318.10
8.2.40.0070.00019.34
8.2.30.0020.00519.29
8.2.20.0050.00218.02
8.2.10.0070.00018.05
8.2.00.0060.00317.70
8.1.280.0070.01325.92
8.1.270.0080.00020.48
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00422.19
8.1.230.0030.00718.95
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0040.00418.48
8.1.160.0070.00018.83
8.1.150.0000.00718.70
8.1.140.0000.00722.09
8.1.130.0000.00720.25
8.1.120.0040.00417.37
8.1.110.0000.00817.40
8.1.100.0000.00817.34
8.1.90.0070.00017.41
8.1.80.0000.00917.40
8.1.70.0030.00517.41
8.1.60.0000.00717.55
8.1.50.0000.00817.37
8.1.40.0000.00717.41
8.1.30.0050.00317.47
8.1.20.0040.00417.55
8.1.10.0090.00017.43
8.1.00.0080.00017.48
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0030.00317.11
8.0.260.0000.00718.43
8.0.250.0000.00716.98
8.0.240.0000.00716.94
8.0.230.0070.00016.79
8.0.220.0030.00616.79
8.0.210.0040.00416.82
8.0.200.0040.00416.83
8.0.190.0040.00716.75
8.0.180.0000.00716.74
8.0.170.0030.00616.85
8.0.160.0040.00416.91
8.0.150.0000.00816.76
8.0.140.0070.00016.69
8.0.130.0050.00013.25
8.0.120.0000.00716.86
8.0.110.0040.00416.79
8.0.100.0080.00016.77
8.0.90.0030.00516.85
8.0.80.0100.01016.80
8.0.70.0040.00416.89
8.0.60.0040.00416.78
8.0.50.0040.00416.82
8.0.30.0060.01516.87
8.0.20.0140.00417.40
8.0.10.0000.00716.90
8.0.00.0130.00516.70
7.4.330.0050.00015.55
7.4.320.0060.00016.51
7.4.300.0040.00416.43
7.4.290.0000.00716.43
7.4.280.0030.00616.44
7.4.270.0000.00716.32
7.4.260.0000.00716.53
7.4.250.0000.00916.38
7.4.240.0090.00016.54
7.4.230.0070.00016.51
7.4.220.0000.00916.64
7.4.210.0100.00616.51
7.4.200.0030.00316.23
7.4.160.0090.00716.33
7.4.140.0120.00617.86
7.4.130.0060.01016.43
7.4.120.0100.00616.49
7.4.110.0090.00916.31
7.4.100.0100.00816.36
7.4.90.0080.01016.38
7.4.80.0090.00917.67
7.4.70.0030.01416.43
7.4.60.0100.00916.28
7.4.50.0080.01016.16
7.4.40.0080.01116.22
7.4.30.0080.01116.11
7.4.20.0080.01116.15
7.4.10.0130.00916.31
7.4.00.0100.00716.15
7.3.330.0050.00013.00
7.3.320.0060.00013.06
7.3.310.0090.00016.06
7.3.300.0030.00316.07
7.3.290.0000.00716.12
7.3.280.0060.00816.08
7.3.260.0130.00716.24
7.3.240.0080.00916.25
7.3.230.0140.00416.45
7.3.220.0110.00816.14
7.3.210.0050.01216.22
7.3.200.0070.01016.19
7.3.190.0050.01216.29
7.3.180.0110.00815.98
7.3.170.0130.00515.96
7.3.160.0090.00916.36
7.3.150.0100.00716.23
7.3.140.0200.00316.07
7.3.130.0080.00816.21
7.3.120.0060.01116.29
7.3.110.0070.01016.11
7.3.100.0110.00616.05
7.3.90.0090.00916.20
7.3.80.0060.01016.44
7.3.70.0080.00816.34
7.3.60.0080.00816.11
7.3.50.0070.00716.11
7.3.40.0090.00616.02
7.3.30.0110.00515.91
7.3.20.0090.00916.06
7.3.10.0100.00716.27
7.3.00.0070.01016.08
7.2.330.0070.01116.39
7.2.320.0030.01516.33
7.2.310.0110.00716.38
7.2.300.0080.01116.40
7.2.290.0120.00716.64
7.2.280.0130.00616.14
7.2.270.0060.01216.26
7.2.260.0090.00916.54
7.2.250.0130.00616.74
7.2.240.0090.01116.27
7.2.230.0070.01016.30
7.2.220.0030.01916.55
7.2.210.0090.00916.50
7.2.200.0070.01016.55
7.2.190.0030.01316.54
7.2.180.0100.00616.48
7.2.170.0120.00616.45
7.2.160.0170.00016.14
7.2.150.0120.00616.56
7.2.140.0120.00616.46
7.2.130.0030.01516.44
7.2.120.0060.01216.31
7.2.110.0100.00716.41
7.2.100.0140.00616.39
7.2.90.0060.01416.30
7.2.80.0090.00916.11
7.2.70.0080.01116.20
7.2.60.0070.01016.11
7.2.50.0170.00316.04
7.2.40.0110.00716.62
7.2.30.0110.00816.42
7.2.20.0090.00916.38
7.2.10.0150.00416.28
7.2.00.0130.01016.21
7.1.330.0120.01215.53
7.1.320.0090.01215.46
7.1.310.0070.01515.44
7.1.300.0070.01015.51
7.1.290.0040.01215.42
7.1.280.0100.00715.30
7.1.270.0080.00815.30
7.1.260.0170.00015.49
7.1.250.0100.00715.46
7.1.240.0170.01015.38
7.1.230.0090.01215.53
7.1.220.0100.00715.41
7.1.210.0060.00915.42
7.1.200.0120.00315.21
7.1.190.0090.00615.47
7.1.180.0130.00315.45
7.1.170.0090.00915.45
7.1.160.0070.01015.51
7.1.150.0090.01115.34
7.1.140.0110.00515.43
7.1.130.0060.01015.41
7.1.120.0090.00815.34
7.1.110.0080.00815.40
7.1.100.0120.00415.63
7.1.90.0130.00715.51
7.1.80.0070.01115.54
7.1.70.0130.00615.55
7.1.60.0100.00715.47
7.1.50.0110.00715.44
7.1.40.0100.00715.43
7.1.30.0100.00615.46
7.1.20.0000.01815.49
7.1.10.0080.00815.57
7.1.00.0110.01115.55
7.0.330.0060.01215.31
7.0.320.0080.00815.11
7.0.310.0000.01515.05
7.0.300.0090.01215.04
7.0.290.0060.01014.95
7.0.280.0130.00315.13
7.0.270.0080.00815.10
7.0.260.0110.00515.23
7.0.250.0030.01315.30
7.0.240.0000.01815.09
7.0.230.0000.01715.24
7.0.220.0070.00714.99
7.0.210.0090.00615.11
7.0.200.0080.00714.87
7.0.190.0030.01315.08
7.0.180.0060.00915.18
7.0.170.0120.00415.16
7.0.160.0070.01415.19
7.0.150.0060.00915.22
7.0.140.0090.00815.08
7.0.130.0070.01315.20
7.0.120.0060.00915.21
7.0.110.0070.00715.15
7.0.100.0200.00015.08
7.0.90.0120.00414.93
7.0.80.0150.00415.08
7.0.70.0100.00615.27
7.0.60.0130.00315.01
7.0.50.0120.00315.00
7.0.40.0100.00515.07
7.0.30.0160.00915.34
7.0.20.0120.00514.84
7.0.10.0100.01115.17
7.0.00.0070.01115.19
5.6.400.0090.00915.95
5.6.390.0080.00915.84
5.6.380.0130.00616.20
5.6.370.0070.01115.95
5.6.360.0090.00915.80
5.6.350.0030.01715.59
5.6.340.0120.00615.92
5.6.330.0060.01615.67
5.6.320.0070.01115.98
5.6.310.0120.00615.92
5.6.300.0120.00615.72
5.6.290.0110.01515.76
5.6.280.0090.01015.88
5.6.270.0120.00616.03
5.6.260.0100.01015.99
5.6.250.0030.01415.91
5.6.240.0110.01115.74
5.6.230.0060.01115.90
5.6.220.0120.00916.02
5.6.210.0030.01615.73
5.6.200.0090.00915.80
5.6.190.0070.01116.06
5.6.180.0130.01015.80
5.6.170.0070.01615.62
5.6.160.0120.00615.84
5.6.150.0120.00915.90
5.6.140.0130.01015.71
5.6.130.0060.01515.87
5.6.120.0070.01115.91
5.6.110.0160.00615.89
5.6.100.0060.01215.92
5.6.90.0120.00615.73
5.6.80.0100.01315.84
5.6.70.0090.00815.62
5.6.60.0090.00915.60
5.6.50.0070.01115.53
5.6.40.0090.00915.48
5.6.30.0040.01415.46
5.6.20.0000.01715.29
5.6.10.0040.01515.51
5.6.00.0170.00015.57

preferences:
70.31 ms | 401 KiB | 5 Q