3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "levels": [ {"role_id":1, "access_level_id":3}, {"role_id":2, "access_level_id":1}, {"role_id":3, "access_level_id":2}], "category_id": 3 }'; $decoded = json_decode($json, true); var_dump($decoded);

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.10.0100.00716.67
8.5.00.0120.01019.93
8.4.150.0010.00114.05
8.4.140.0130.00717.40
8.4.130.0120.00617.81
8.4.120.0090.01020.52
8.4.110.0120.00820.54
8.4.100.0090.01018.95
8.4.90.0180.00320.47
8.4.80.0120.00818.75
8.4.70.0110.00919.26
8.4.60.0070.00518.66
8.4.50.0120.00917.45
8.4.40.0050.00317.45
8.4.30.0060.01318.52
8.4.20.0040.01117.79
8.4.10.0060.00320.43
8.3.280.0130.00718.36
8.3.270.0120.00716.58
8.3.260.0110.00816.24
8.3.250.0110.00818.67
8.3.240.0130.00616.46
8.3.230.0100.00916.34
8.3.220.0090.01018.92
8.3.210.0070.00516.48
8.3.200.0080.00116.57
8.3.190.0090.00916.95
8.3.180.0100.00816.55
8.3.170.0090.00918.91
8.3.160.0180.00016.34
8.3.150.0100.01020.59
8.3.140.0000.00816.56
8.3.130.0120.00318.45
8.3.120.0120.00320.62
8.3.110.0060.00320.94
8.3.100.0060.00316.67
8.3.90.0150.00918.13
8.3.80.0040.00419.36
8.3.70.0180.00316.63
8.3.60.0110.00718.30
8.3.50.0130.00523.64
8.3.40.0090.00621.90
8.3.30.0120.00318.74
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.290.0100.00918.82
8.2.280.0100.00418.40
8.2.270.0090.00617.16
8.2.260.0050.00318.65
8.2.250.0040.00416.47
8.2.240.0060.00917.13
8.2.230.0060.00322.58
8.2.220.0070.00324.06
8.2.210.0040.00426.77
8.2.200.0030.00618.42
8.2.190.0030.01216.58
8.2.180.0040.01125.92
8.2.170.0090.00618.90
8.2.160.0140.00022.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0150.00419.14
8.2.100.0040.00717.59
8.2.90.0040.00417.78
8.2.80.0000.00820.53
8.2.70.0060.00317.50
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0030.00519.82
8.2.30.0000.00717.91
8.2.20.0040.00417.86
8.2.10.0040.00419.29
8.2.00.0040.00419.25
8.1.330.0090.00918.09
8.1.320.0110.00816.13
8.1.310.0180.00018.35
8.1.300.0100.01019.36
8.1.290.0030.00718.88
8.1.280.0100.00325.92
8.1.270.0000.00823.99
8.1.260.0070.00728.09
8.1.250.0040.00428.09
8.1.240.0080.00422.08
8.1.230.0060.00621.03
8.1.220.0040.00417.79
8.1.210.0050.00318.91
8.1.200.0090.00017.13
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0000.00718.78
8.1.150.0050.00218.71
8.1.140.0040.00418.77
8.1.130.0030.00317.37
8.1.120.0080.00017.39
8.1.110.0000.00817.29
8.1.100.0000.00717.27
8.1.90.0000.00717.35
8.1.80.0040.00417.31
8.1.70.0040.00417.29
8.1.60.0030.00617.50
8.1.50.0040.00417.34
8.1.40.0000.00717.33
8.1.30.0000.00717.61
8.1.20.0050.00317.58
8.1.10.0030.00617.43
8.1.00.0000.00717.21
8.0.300.0040.00419.90
8.0.290.0040.00416.63
8.0.280.0030.00518.43
8.0.270.0040.00417.93
8.0.260.0000.00716.70
8.0.250.0070.00016.92
8.0.240.0040.00416.86
8.0.230.0030.00316.82
8.0.220.0030.00316.81
8.0.210.0050.00316.80
8.0.200.0000.00616.79
8.0.190.0030.00316.79
8.0.180.0000.00716.83
8.0.170.0000.00816.76
8.0.160.0050.00216.78
8.0.150.0000.00716.66
8.0.140.0040.00416.72
8.0.130.0000.00513.17
8.0.120.0040.00416.79
8.0.110.0040.00416.87
8.0.100.0000.00816.80
8.0.90.0000.00716.88
8.0.80.0090.00916.82
8.0.70.0040.00416.77
8.0.60.0040.00416.73
8.0.50.0000.00716.61
8.0.30.0130.00616.87
8.0.20.0110.01116.97
8.0.10.0030.00616.93
8.0.00.0120.01216.77
7.4.330.0030.00315.55
7.4.320.0000.00816.53
7.4.300.0000.00616.42
7.4.290.0000.00716.55
7.4.280.0000.00816.34
7.4.270.0060.00316.33
7.4.260.0000.00716.32
7.4.250.0000.00716.29
7.4.240.0000.00716.52
7.4.230.0030.00616.17
7.4.220.0060.00216.56
7.4.210.0080.00916.48
7.4.200.0000.00716.45
7.4.130.0100.01016.47
7.4.120.0100.00716.34
7.4.110.0120.00516.21
7.4.100.0060.01116.38
7.4.90.0060.01116.38
7.4.80.0090.01216.37
7.4.70.0090.00816.19
7.4.60.0130.00716.30
7.4.50.0070.01416.28
7.4.40.0090.01016.29
7.4.30.0130.00516.45
7.4.20.0110.01116.25
7.4.10.0100.00716.45
7.4.00.0050.01216.46
7.3.330.0050.00316.24
7.3.320.0000.00513.06
7.3.310.0040.00416.15
7.3.300.0000.00616.15
7.3.290.0100.00616.13
7.3.260.0160.00316.17
7.3.230.0060.01116.25
7.3.220.0100.00716.17
7.3.210.0050.01216.24
7.3.200.0080.01016.16
7.3.190.0090.01116.18
7.3.180.0140.00616.19
7.3.170.0100.00816.00
7.3.160.0090.00916.23
7.3.150.0070.00916.11
7.3.140.0110.00716.17
7.3.130.0120.00716.15
7.3.120.0110.00916.28
7.3.110.0090.01316.17
7.3.100.0130.00716.34
7.3.90.0100.01216.16
7.3.80.0060.01316.20
7.3.70.0120.00716.22
7.3.60.0130.00616.11
7.3.50.0100.00716.12
7.3.40.0110.00716.09
7.3.30.0060.01115.95
7.3.20.0080.00916.14
7.3.10.0120.00516.19
7.3.00.0080.00816.11
7.2.340.0100.00916.52
7.2.330.0090.00816.40
7.2.320.0120.00616.33
7.2.310.0080.01316.33
7.2.300.0090.01116.38
7.2.290.0090.00816.30
7.2.280.0090.01016.27
7.2.270.0130.00916.37
7.2.260.0100.00816.21
7.2.250.0080.00916.33
7.2.240.0150.00316.44
7.2.230.0070.01216.34
7.2.220.0090.01116.09
7.2.210.0110.00916.42
7.2.200.0120.00916.30
7.2.190.0100.00716.35
7.2.180.0070.01116.17
7.2.170.0100.00816.30
7.2.160.0030.01716.42
7.2.150.0120.00616.46
7.2.140.0070.01116.20
7.2.130.0140.00516.48
7.2.120.0090.01216.32
7.2.110.0170.00816.41
7.2.100.0120.00616.37
7.2.90.0090.00916.47
7.2.80.0110.00816.30
7.2.70.0110.00916.28
7.2.60.0080.01116.35
7.2.50.0120.00616.32
7.2.40.0030.01916.42
7.2.30.0140.00516.46
7.2.20.0070.01116.36
7.2.10.0110.00816.41
7.2.00.0060.01216.27

preferences:
37.4 ms | 403 KiB | 5 Q