3v4l.org

run code in 300+ PHP versions simultaneously
<?php json_decode("\00invalid json"); var_dump(json_last_error()); json_decode("[]", true, 512, JSON_THROW_ON_ERROR); var_dump(json_last_error());

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.5.00.0130.01019.59
8.4.150.0030.00014.05
8.4.140.0110.00917.32
8.4.130.0090.01117.59
8.4.120.0070.00423.87
8.4.110.0080.01222.35
8.4.100.0130.00818.47
8.4.90.0090.00818.99
8.4.80.0110.00520.09
8.4.70.0050.00217.76
8.4.60.0120.00818.82
8.4.50.0130.00720.39
8.4.40.0110.00719.11
8.4.30.0030.00918.92
8.4.20.0100.01025.58
8.4.10.0090.00023.44
8.3.280.0130.00718.18
8.3.270.0140.00516.50
8.3.260.0090.00616.63
8.3.250.0130.00718.90
8.3.240.0060.00916.92
8.3.230.0130.00716.59
8.3.220.0060.00218.95
8.3.210.0090.00616.45
8.3.200.0070.00216.67
8.3.190.0040.00416.85
8.3.180.0050.00816.77
8.3.170.0120.00618.96
8.3.160.0140.00416.87
8.3.150.0060.01317.06
8.3.140.0080.00016.39
8.3.130.0030.00618.23
8.3.120.0100.00018.79
8.3.110.0130.00320.94
8.3.100.0040.00418.04
8.3.90.0050.00318.24
8.3.80.0070.00418.09
8.3.70.0120.00316.50
8.3.60.0100.00618.31
8.3.50.0060.00916.32
8.3.40.0070.00720.33
8.3.30.0120.00418.63
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.290.0070.00720.61
8.2.280.0100.00918.55
8.2.270.0090.00917.14
8.2.260.0050.00516.40
8.2.250.0110.00718.43
8.2.240.0130.00318.80
8.2.230.0090.00022.58
8.2.220.0110.00824.06
8.2.210.0040.00426.77
8.2.200.0030.00618.17
8.2.190.0070.00716.58
8.2.180.0110.00717.91
8.2.170.0030.01722.96
8.2.160.0100.00722.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0060.00320.94
8.2.100.0060.00617.78
8.2.90.0050.00317.72
8.2.80.0000.00817.50
8.2.70.0090.00017.13
8.2.60.0040.00417.80
8.2.50.0090.00018.07
8.2.40.0000.00819.76
8.2.30.0040.00417.92
8.2.20.0000.00919.17
8.2.10.0030.00917.55
8.2.00.0060.01117.45
8.1.330.0130.00421.90
8.1.320.0080.00615.87
8.1.310.0040.00416.62
8.1.300.0060.00315.91
8.1.290.0040.00818.88
8.1.280.0030.01425.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.43
8.1.230.0080.00422.66
8.1.220.0040.00417.74
8.1.210.0040.00418.95
8.1.200.0030.00617.23
8.1.190.0000.00817.00
8.1.180.0000.00722.12
8.1.170.0050.00318.59
8.1.160.0050.00318.70
8.1.150.0070.00018.51
8.1.140.0110.00017.29
8.1.130.0130.00717.31
8.1.120.0180.00017.37
8.1.110.0090.00917.38
8.1.100.0120.00317.30
8.1.90.0150.00017.36
8.1.80.0170.00317.38
8.1.70.0120.00517.31
8.1.60.0180.00317.48
8.1.50.0180.00317.34
8.1.40.0100.00917.55
8.1.30.0060.01217.54
8.1.20.0140.00517.50
8.1.10.0120.00917.39
8.1.00.0170.00317.33
8.0.300.0040.00419.90
8.0.290.0040.00416.58
8.0.280.0030.00318.18
8.0.270.0070.00716.73
8.0.260.0040.01216.71
8.0.250.0060.00616.68
8.0.240.0110.00616.66
8.0.230.0100.00516.73
8.0.220.0110.00416.75
8.0.210.0000.01216.55
8.0.200.0050.00518.57
8.0.190.0110.00416.72
8.0.180.0130.00316.67
8.0.170.0080.00716.75
8.0.160.0080.00716.66
8.0.150.0040.00916.73
8.0.140.0170.00016.61
8.0.130.0050.01116.58
8.0.120.0080.00816.57
8.0.110.0110.00216.67
8.0.100.0050.01116.66
8.0.90.0160.00016.58
8.0.80.0150.00016.50
8.0.70.0040.01216.58
8.0.60.0150.00016.55
8.0.50.0110.00516.66
8.0.30.0170.00016.65
8.0.20.0150.00316.65
8.0.10.0120.00416.79

preferences:
30.08 ms | 403 KiB | 5 Q