3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brokenJson = '[{"test":"aあb"}]'; $res = json_decode($brokenJson, true); if (json_last_error() != JSON_ERROR_NONE) { throw new Exception(json_last_error_msg(), json_last_error()); } var_dump($res);

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.0120.00316.36
8.3.50.0100.01221.99
8.3.40.0040.01118.57
8.3.30.0000.01418.59
8.3.20.0080.00020.40
8.3.10.0060.00321.85
8.3.00.0040.00419.25
8.2.180.0070.01116.50
8.2.170.0100.00322.96
8.2.160.0070.01020.39
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0080.00417.38
8.2.120.0050.00326.35
8.2.110.0130.00922.25
8.2.100.0090.00617.78
8.2.90.0030.00519.23
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0090.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00919.39
8.2.30.0070.00020.68
8.2.20.0060.00317.46
8.2.10.0050.00218.05
8.2.00.0050.00217.96
8.1.280.0140.00025.92
8.1.270.0090.00622.17
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00623.79
8.1.230.0030.00920.91
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0000.00718.10
8.1.170.0080.00018.74
8.1.160.0000.00721.92
8.1.150.0000.00818.75
8.1.140.0030.00719.56
8.1.130.0030.00317.69
8.1.120.0050.00217.50
8.1.110.0070.00017.34
8.1.100.0000.00717.34
8.1.90.0080.00017.35
8.1.80.0070.00017.47
8.1.70.0000.00717.44
8.1.60.0030.00517.44
8.1.50.0080.00017.45
8.1.40.0040.00417.52
8.1.30.0050.00517.71
8.1.20.0080.00017.69
8.1.10.0040.00417.39
8.1.00.0090.00017.24
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.42
8.0.270.0030.00317.20
8.0.260.0030.00317.19
8.0.250.0040.00416.89
8.0.240.0030.00316.89
8.0.230.0030.00316.84
8.0.220.0000.00816.80
8.0.210.0040.00416.79
8.0.200.0090.00016.91
8.0.190.0050.00316.76
8.0.180.0080.00016.80
8.0.170.0040.00416.71
8.0.160.0030.00316.73
8.0.150.0080.00016.68
8.0.140.0080.00016.61
8.0.130.0000.00513.30
8.0.120.0080.00016.75
8.0.110.0050.00216.75
8.0.100.0070.00016.69
8.0.90.0040.00416.65
8.0.80.0090.00616.81
8.0.70.0000.00816.62
8.0.60.0030.00516.84
8.0.50.0040.00416.81
8.0.30.0090.00817.11
8.0.20.0110.00817.40
8.0.10.0040.00416.88
8.0.00.0110.00916.71
7.4.330.0030.00315.08
7.4.320.0030.00316.64
7.4.300.0060.00016.50
7.4.290.0030.00316.48
7.4.280.0040.00416.56
7.4.270.0000.00616.64
7.4.260.0070.00016.58
7.4.250.0050.00316.55
7.4.240.0050.00216.56
7.4.230.0000.00716.66
7.4.220.0160.01016.45
7.4.210.0080.00816.54
7.4.200.0000.00816.34
7.4.160.0160.00516.37
7.4.150.0180.00017.40
7.4.140.0090.01317.86
7.4.130.0110.00616.30
7.4.120.0090.00916.42
7.4.110.0080.01116.30
7.4.100.0100.00716.57
7.4.90.0170.00016.45
7.4.80.0090.01519.39
7.4.70.0090.00616.40
7.4.60.0060.01216.51
7.4.50.0030.00316.08
7.4.40.0140.00716.41
7.4.30.0070.01116.59
7.4.00.0040.01115.11
7.3.330.0000.00613.09
7.3.320.0030.00313.05
7.3.310.0030.00316.21
7.3.300.0060.00016.06
7.3.290.0030.00316.07
7.3.280.0100.00616.20
7.3.270.0140.00317.40
7.3.260.0000.01616.57
7.3.250.0090.01016.36
7.3.240.0110.00516.21
7.3.230.0090.01216.39
7.3.210.0030.01316.48
7.3.200.0120.00916.44
7.3.190.0050.01116.54
7.3.180.0030.01416.36
7.3.170.0040.01516.27
7.3.160.0060.01016.35
7.3.10.0130.00316.31
7.3.00.0100.00316.31
7.2.330.0110.00716.61
7.2.320.0100.01016.35
7.2.310.0130.00316.48
7.2.300.0090.01216.56
7.2.290.0090.01216.65
7.2.130.0070.00716.65
7.2.120.0100.00016.45
7.2.110.0030.00916.79
7.2.100.0070.01016.79
7.2.90.0030.00916.54
7.2.80.0030.01416.67
7.2.70.0180.00316.60
7.2.60.0070.00716.79
7.2.50.0090.00016.85
7.2.40.0090.00616.90
7.2.30.0030.00716.86
7.2.20.0000.01716.84
7.2.10.0000.01216.81
7.2.00.0020.01417.97
7.1.250.0070.01015.75
7.1.240.0040.00915.91
7.1.230.0000.01215.58
7.1.220.0060.00315.81
7.1.210.0030.00915.75
7.1.200.0030.01215.83
7.1.190.0100.00315.45
7.1.180.0000.01415.69
7.1.170.0040.01115.70
7.1.160.0000.01615.85
7.1.150.0040.00815.64
7.1.140.0040.01215.80
7.1.130.0030.00615.70
7.1.120.0040.01115.66
7.1.110.0000.01615.54
7.1.100.0070.00416.66
7.1.90.0030.01015.61
7.1.80.0100.00715.67
7.1.70.0020.01116.34
7.1.60.0070.01317.48
7.1.50.0160.01025.18
7.1.40.0030.01015.69
7.1.30.0110.00415.64
7.1.20.0040.00815.53
7.1.10.0070.00715.64
7.1.00.0030.04319.08
7.0.330.0060.01015.41
7.0.320.0060.00915.51
7.0.310.0000.01114.99
7.0.300.0000.01115.42
7.0.290.0030.00615.28
7.0.280.0030.01015.51
7.0.270.0060.00915.30
7.0.260.0040.01115.23
7.0.250.0040.00415.34
7.0.240.0040.00415.32
7.0.230.0030.01015.52
7.0.220.0030.01015.38
7.0.210.0100.00815.42
7.0.200.0150.00914.78
7.0.190.0100.00715.14
7.0.180.0070.00715.46
7.0.170.0100.00715.24
7.0.160.0090.00315.41
7.0.150.0100.00315.18
7.0.140.0090.00615.30
7.0.130.0030.00615.25
7.0.120.0030.01015.48
7.0.110.0040.00415.34
7.0.100.0070.00715.46
7.0.90.0000.00815.39
7.0.80.0030.00915.52
7.0.70.0030.01215.35
7.0.60.0050.04717.46
7.0.50.0050.02516.66
7.0.40.0130.03116.79
7.0.30.0030.02516.94
7.0.20.0100.04016.86
7.0.10.0110.04316.60
7.0.00.0060.03616.64
5.6.380.0030.01014.44
5.6.370.0040.01114.17
5.6.360.0030.00614.17
5.6.350.0000.01614.33
5.6.340.0040.00714.52
5.6.330.0070.01114.54
5.6.320.0090.00614.31
5.6.310.0070.01114.14
5.6.300.0000.00914.18
5.6.290.0110.00414.59
5.6.280.0050.03717.51
5.6.270.0030.01314.19
5.6.260.0000.01314.11
5.6.250.0060.00814.39
5.6.240.0100.00714.17
5.6.230.0000.01514.50
5.6.220.0100.00714.22
5.6.210.0110.03017.51
5.6.200.0110.04316.27
5.6.190.0100.03217.46
5.6.180.0160.03817.31
5.6.170.0100.02617.35
5.6.160.0030.02717.17
5.6.150.0090.03316.22
5.6.140.0020.02216.19
5.6.130.0070.04516.19
5.6.120.0110.02017.71
5.6.110.0050.04017.55
5.6.100.0090.04117.70
5.6.90.0100.04217.58
5.6.80.0110.04017.21
5.6.70.0000.01614.16
5.6.60.0090.00614.03
5.6.50.0000.00913.71
5.6.40.0080.00413.98
5.6.30.0030.01414.09
5.6.20.0070.00714.40
5.6.10.0070.00314.07
5.6.00.0000.01414.26
5.5.380.0100.00010.98
5.5.370.0060.00610.75
5.5.360.0060.00610.94
5.5.350.1180.02115.71
5.5.340.0080.04214.35
5.5.330.0060.04315.58
5.5.320.0350.03715.58
5.5.310.0100.03315.66
5.5.300.0000.05114.31
5.5.290.0060.02814.55
5.5.280.0050.03015.80
5.5.270.0090.03415.75
5.5.260.0060.02216.04
5.5.250.0020.04515.76
5.5.240.0040.04015.53
5.5.230.0080.00311.05
5.5.220.0060.00610.78
5.5.210.0060.00310.95
5.5.200.0040.00410.96
5.5.190.0060.00011.09
5.5.180.0070.00310.99
5.5.170.0060.00611.14
5.5.160.0070.00311.07
5.5.150.0030.00910.82
5.5.140.0030.00810.79
5.5.130.0040.00710.57
5.5.120.0040.00410.73
5.5.110.0040.00810.87
5.5.100.0030.00810.77
5.5.90.0000.01310.88
5.5.80.0100.00010.70
5.5.70.0030.00310.86
5.5.60.0080.00410.97
5.5.50.0060.00611.01
5.5.40.0060.00610.95
5.5.30.0070.00410.98
5.5.20.0070.00411.06
5.5.10.0090.00610.81
5.5.00.0090.00310.81

preferences:
51.93 ms | 401 KiB | 5 Q