3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brokenJson = '[{"test":"𐐷"}]'; $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.0030.01016.50
8.3.50.0140.00522.04
8.3.40.0040.01218.59
8.3.30.0070.00718.63
8.3.20.0080.00020.04
8.3.10.0030.00521.85
8.3.00.0040.00419.13
8.2.180.0150.00416.38
8.2.170.0100.00322.96
8.2.160.0130.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0110.00019.24
8.2.120.0050.00326.35
8.2.110.0070.00319.39
8.2.100.0000.01217.75
8.2.90.0080.00018.98
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0030.00717.93
8.2.50.0080.00018.07
8.2.40.0030.00619.39
8.2.30.0030.00520.54
8.2.20.0070.00317.60
8.2.10.0070.00018.16
8.2.00.0040.00417.96
8.1.280.0040.01125.92
8.1.270.0030.00522.05
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0040.00421.37
8.1.230.0080.00417.45
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0040.00417.10
8.1.180.0060.00318.10
8.1.170.0040.00418.67
8.1.160.0070.00021.91
8.1.150.0040.00420.59
8.1.140.0040.00419.67
8.1.130.0030.00317.65
8.1.120.0070.00017.46
8.1.110.0030.00617.46
8.1.100.0050.00217.33
8.1.90.0000.00717.46
8.1.80.0060.00317.34
8.1.70.0000.00717.31
8.1.60.0000.00817.47
8.1.50.0030.00617.39
8.1.40.0080.00017.50
8.1.30.0030.00617.57
8.1.20.0070.00017.65
8.1.10.0040.00417.30
8.1.00.0000.00817.27
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0030.00318.31
8.0.270.0000.00717.21
8.0.260.0060.00017.14
8.0.250.0040.00416.86
8.0.240.0080.00016.78
8.0.230.0030.00316.91
8.0.220.0040.00416.75
8.0.210.0000.00816.77
8.0.200.0050.00316.77
8.0.190.0040.00416.92
8.0.180.0030.00316.91
8.0.170.0060.00316.79
8.0.160.0030.00316.71
8.0.150.0050.00216.73
8.0.140.0030.00316.66
8.0.130.0030.00313.27
8.0.120.0000.00716.77
8.0.110.0040.00416.80
8.0.100.0000.00816.89
8.0.90.0000.00716.70
8.0.80.0060.00916.82
8.0.70.0040.00416.71
8.0.60.0040.00416.61
8.0.50.0070.00016.79
8.0.30.0120.00517.01
8.0.20.0070.01217.40
8.0.10.0040.00417.05
8.0.00.0070.01016.53
7.4.330.0050.00015.08
7.4.320.0000.00616.60
7.4.300.0030.00316.48
7.4.290.0000.00616.57
7.4.280.0000.00716.34
7.4.270.0000.00716.64
7.4.260.0000.00716.48
7.4.250.0030.00616.41
7.4.240.0020.00516.58
7.4.230.0000.00716.39
7.4.220.0130.01416.63
7.4.210.0060.00916.55
7.4.200.0030.00516.38
7.4.160.0090.00616.70
7.4.150.0030.01417.40
7.4.140.0120.00917.86
7.4.130.0080.00916.47
7.4.120.0070.00916.57
7.4.110.0060.01316.50
7.4.100.0030.01316.52
7.4.90.0150.00816.32
7.4.80.0000.02219.39
7.4.70.0040.01416.62
7.4.60.0080.00816.54
7.4.50.0020.00516.54
7.4.40.0120.00916.32
7.4.30.0060.01116.51
7.4.00.0070.01114.90
7.3.330.0070.00013.04
7.3.320.0030.00313.13
7.3.310.0000.00816.29
7.3.300.0070.00016.19
7.3.290.0030.00316.15
7.3.280.0070.00916.22
7.3.270.0110.00717.40
7.3.260.0060.01016.29
7.3.250.0090.00816.23
7.3.240.0150.00216.20
7.3.230.0100.00716.39
7.3.210.0040.01416.28
7.3.200.0040.01216.38
7.3.190.0060.01016.44
7.3.180.0100.00616.48
7.3.170.0000.01916.46
7.3.160.0060.00916.13
7.3.10.0220.00416.64
7.3.00.0080.00816.12
7.2.330.0070.01116.30
7.2.320.0100.01416.60
7.2.310.0110.00716.34
7.2.300.0100.00716.66
7.2.290.0140.01516.53
7.2.130.0220.00616.59
7.2.120.0130.00716.57
7.2.110.0220.00816.38
7.2.100.0090.01316.30
7.2.90.0140.01416.23
7.2.80.0170.00816.36
7.2.70.0200.00716.43
7.2.60.0060.01216.39
7.2.50.0190.00316.41
7.2.40.0150.01116.59
7.2.30.0110.00716.37
7.2.20.0160.00816.48
7.2.10.0150.00416.18
7.2.00.0120.00817.69
7.1.250.0090.01315.31
7.1.100.0080.00318.06
7.1.70.0050.00217.16
7.1.60.0130.01019.48
7.1.50.0200.01334.54
7.1.00.0070.07322.27
7.0.200.1380.00714.30
7.0.60.0100.05719.95
7.0.50.0100.05717.80
7.0.40.0000.07020.05
7.0.30.0230.03720.21
7.0.20.0300.04020.18
7.0.10.0030.06020.20
7.0.00.0070.07320.16
5.6.280.0100.06721.10
5.6.210.0170.07320.47
5.6.200.0000.06718.15
5.6.190.0100.05020.29
5.6.180.0400.06320.77
5.6.170.0200.03720.52
5.6.160.0000.04320.52
5.6.150.0170.05718.12
5.6.140.0070.04018.09
5.6.130.0070.07718.07
5.6.120.0030.04321.14
5.6.110.0130.07720.96
5.6.100.0100.08021.04
5.6.90.0070.07320.96
5.6.80.0100.07320.28
5.5.350.3000.03720.41
5.5.340.0030.06317.98
5.5.330.0030.05020.28
5.5.320.0500.04320.32
5.5.310.0200.03720.50
5.5.300.0030.09018.02
5.5.290.0100.06318.00
5.5.280.0000.05020.87
5.5.270.0070.05320.67
5.5.260.0030.04320.79
5.5.250.0000.07320.69
5.5.240.0030.06020.02

preferences:
33.72 ms | 401 KiB | 5 Q