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.0150.00016.38
8.3.50.0030.01718.06
8.3.40.0040.01118.57
8.3.30.0140.00718.79
8.3.20.0040.00420.15
8.3.10.0030.00621.73
8.3.00.0080.00019.26
8.2.180.0040.01816.50
8.2.170.0160.00322.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00917.63
8.2.120.0000.00826.35
8.2.110.0000.00920.54
8.2.100.0060.00617.80
8.2.90.0060.00319.18
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0050.00517.91
8.2.50.0030.00618.07
8.2.40.0000.00819.37
8.2.30.0050.00320.63
8.2.20.0040.00717.73
8.2.10.0030.00517.98
8.2.00.0000.00718.11
8.1.280.0080.00625.92
8.1.270.0080.00022.06
8.1.260.0070.00028.09
8.1.250.0020.00528.09
8.1.240.0030.00622.33
8.1.230.0000.01117.53
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0060.00317.34
8.1.180.0040.00418.10
8.1.170.0040.00418.44
8.1.160.0040.00422.09
8.1.150.0030.00620.55
8.1.140.0030.00519.63
8.1.130.0030.00317.57
8.1.120.0030.00317.45
8.1.110.0080.00017.37
8.1.100.0040.00317.48
8.1.90.0030.00317.42
8.1.80.0030.00317.51
8.1.70.0000.00717.39
8.1.60.0040.00417.55
8.1.50.0040.00417.43
8.1.40.0050.00317.40
8.1.30.0040.00417.57
8.1.20.0040.00417.58
8.1.10.0030.00517.64
8.1.00.0030.00517.48
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0080.00018.36
8.0.270.0030.00317.20
8.0.260.0060.00017.07
8.0.250.0000.00716.86
8.0.240.0030.00316.83
8.0.230.0030.00316.95
8.0.220.0080.00016.82
8.0.210.0030.00316.91
8.0.200.0030.00616.92
8.0.190.0040.00417.02
8.0.180.0070.00016.77
8.0.170.0000.00716.92
8.0.160.0070.00016.97
8.0.150.0030.00316.97
8.0.140.0000.00716.87
8.0.130.0030.00313.37
8.0.120.0030.00516.89
8.0.110.0050.00316.96
8.0.100.0000.00716.82
8.0.90.0000.00716.93
8.0.80.0070.01017.02
8.0.70.0050.00316.95
8.0.60.0000.00716.82
8.0.50.0000.00716.95
8.0.30.0080.01116.81
8.0.20.0060.01217.40
8.0.10.0070.00017.06
8.0.00.0070.01116.76
7.4.330.0000.00515.10
7.4.320.0040.00416.50
7.4.300.0060.00016.47
7.4.290.0000.00716.58
7.4.280.0070.00016.50
7.4.270.0000.00716.63
7.4.260.0000.00716.50
7.4.250.0000.00816.57
7.4.240.0030.00316.45
7.4.230.0040.00416.50
7.4.220.0100.01616.68
7.4.210.0080.00616.51
7.4.200.0070.00016.48
7.4.160.0070.00716.40
7.4.150.0060.01217.40
7.4.140.0090.01717.86
7.4.130.0080.00816.61
7.4.120.0090.00916.67
7.4.110.0110.00816.45
7.4.100.0180.00516.48
7.4.90.0170.00616.46
7.4.80.0130.00719.39
7.4.70.0100.01016.53
7.4.60.0080.00816.51
7.4.50.0000.00816.36
7.4.40.0100.01016.62
7.4.30.0060.01516.61
7.4.00.0090.00714.70
7.3.330.0070.00013.16
7.3.320.0030.00313.20
7.3.310.0000.00816.11
7.3.300.0000.00716.26
7.3.290.0040.00416.25
7.3.280.0110.00916.28
7.3.270.0120.00617.40
7.3.260.0140.00316.52
7.3.250.0110.00816.43
7.3.240.0090.00916.40
7.3.230.0150.00716.39
7.3.210.0070.01016.24
7.3.200.0030.01316.29
7.3.190.0090.00616.42
7.3.180.0110.00416.50
7.3.170.0080.01116.29
7.3.160.0140.00716.33
7.3.120.0040.01114.86
7.3.110.0070.01114.46
7.3.100.0030.01214.95
7.3.90.0060.00914.72
7.3.80.0070.01015.00
7.3.70.0030.00714.63
7.3.60.0060.00314.83
7.3.50.0070.00714.57
7.3.40.0040.01414.75
7.3.30.0070.00714.73
7.3.20.0060.00616.71
7.3.10.0060.00716.56
7.3.00.0070.00816.63
7.2.330.0060.00916.68
7.2.320.0100.00716.47
7.2.310.0070.01116.68
7.2.300.0100.00616.62
7.2.290.0130.00916.52
7.2.250.0000.01914.89
7.2.240.0060.01114.93
7.2.230.0090.00615.02
7.2.220.0000.01415.21
7.2.210.0130.00714.75
7.2.200.0040.00814.77
7.2.190.0030.01115.25
7.2.180.0150.00414.59
7.2.170.0090.00615.03
7.2.130.0160.00316.95
7.2.120.0070.00717.00
7.2.110.0030.00716.80
7.2.100.0120.00416.86
7.2.90.0090.00616.98
7.2.80.0110.00716.73
7.2.70.0070.00316.80
7.2.60.0100.00316.88
7.2.50.0120.00616.97
7.2.40.0060.00616.99
7.2.30.0000.01216.83
7.2.20.0040.00816.82
7.2.10.0090.00917.14
7.2.00.0050.01018.06
7.1.330.0030.01315.88
7.1.320.0110.00415.46
7.1.310.0110.00815.89
7.1.300.0040.01115.61
7.1.290.0060.00615.76
7.1.280.0070.01115.67
7.1.270.0040.01515.66
7.1.260.0060.00615.81
7.1.250.0000.01015.65
7.1.200.0040.01115.73
7.1.100.0030.01018.17
7.1.70.0030.00317.04
7.1.60.0030.02219.48
7.1.50.0000.01416.91
7.1.00.0030.07722.35
7.0.200.0360.00614.83
7.0.60.0070.05019.92
7.0.50.0100.07317.82
7.0.40.0030.06320.02
7.0.30.0070.03720.17
7.0.20.0270.07720.19
7.0.10.0100.04720.13
7.0.00.0070.08720.08
5.6.280.0030.03320.81
5.6.210.0100.08020.50
5.6.200.0030.08318.16
5.6.190.0100.08720.57
5.6.180.0330.07320.57
5.6.170.0130.04320.48
5.6.160.0030.06320.44
5.6.150.0030.06318.16
5.6.140.0070.03718.18
5.6.130.0030.05018.18
5.6.120.0130.03320.99
5.6.110.0030.07320.97
5.6.100.0070.08321.00
5.6.90.0070.06321.10
5.6.80.0070.08320.35
5.5.350.3830.05320.40
5.5.340.0200.04317.97
5.5.330.0100.07720.42
5.5.320.0230.04020.35
5.5.310.0270.07320.30
5.5.300.0030.04717.94
5.5.290.0130.07318.06
5.5.280.0130.08020.77
5.5.270.0130.06320.64
5.5.260.0000.04320.78
5.5.250.0030.08320.68
5.5.240.0030.08020.04

preferences:
45.01 ms | 400 KiB | 5 Q