3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = json_decode('{ "key": "levels", "value": "[{role_id:1, access_level_id:3}, {role_id:2, access_level_id:1}, {role_id:3, access_level_id:2}]", "description": "" }', true); $x['value'] = json_decode(preg_replace('/(\w+)(?=:)/', '"$1"', $x['value']), true); print_r($x);

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.4.120.0140.00624.15
8.4.110.0120.00720.51
8.4.100.0140.00717.91
8.4.90.0130.00722.68
8.4.80.0070.00317.93
8.4.70.0060.00318.25
8.4.60.0100.01018.86
8.4.50.0120.00820.47
8.4.40.0090.00017.89
8.4.30.0110.00820.43
8.4.20.0130.00618.20
8.4.10.0000.00820.67
8.3.250.0050.00518.83
8.3.240.0110.00716.88
8.3.230.0130.00716.55
8.3.220.0100.00917.20
8.3.210.0050.00316.84
8.3.200.0070.00316.68
8.3.190.0140.00919.10
8.3.180.0040.00516.46
8.3.170.0150.00317.10
8.3.160.0110.00718.62
8.3.150.0130.00716.60
8.3.140.0040.00416.47
8.3.130.0000.00918.46
8.3.120.0110.00718.80
8.3.110.0000.00820.94
8.3.100.0090.00024.06
8.3.90.0140.00726.77
8.3.80.0030.00616.88
8.3.70.0110.00716.58
8.3.60.0070.01416.48
8.3.50.0080.00923.70
8.3.40.0000.01521.94
8.3.30.0070.00718.79
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00720.60
8.2.280.0130.00518.64
8.2.270.0100.01017.15
8.2.260.0120.00617.18
8.2.250.0040.00416.99
8.2.240.0100.00017.36
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0050.00326.77
8.2.200.0090.00316.75
8.2.190.0090.01317.00
8.2.180.0100.00625.92
8.2.170.0080.00819.01
8.2.160.0080.00522.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00726.35
8.2.110.0060.00322.37
8.2.100.0000.01217.91
8.2.90.0080.00019.05
8.2.80.0050.00317.97
8.2.70.0050.00317.75
8.2.60.0040.00417.63
8.2.50.0040.00418.05
8.2.40.0030.00718.04
8.2.30.0000.00718.09
8.2.20.0070.00018.01
8.2.10.0070.00019.27
8.2.00.0070.00019.30
8.1.330.0100.00921.85
8.1.320.0130.00716.52
8.1.310.0080.00018.58
8.1.300.0060.00918.48
8.1.290.0030.00718.88
8.1.280.0100.00725.92
8.1.270.0030.01622.01
8.1.260.0080.00028.09
8.1.250.0030.00528.09
8.1.240.0060.00324.02
8.1.230.0090.00319.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.52
8.1.190.0040.00417.47
8.1.180.0050.00320.24
8.1.170.0040.00418.62
8.1.160.0040.00418.86
8.1.150.0040.00418.91
8.1.140.0070.00018.79
8.1.130.0030.00320.27
8.1.120.0000.00817.45
8.1.110.0000.00817.57
8.1.100.0000.00817.55
8.1.90.0000.00817.55
8.1.80.0070.00317.41
8.1.70.0070.00017.58
8.1.60.0000.00817.68
8.1.50.0040.00417.51
8.1.40.0070.00017.51
8.1.30.0000.00817.75
8.1.20.0000.00817.74
8.1.10.0000.00717.64
8.1.00.0080.00017.48
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0000.00720.27
8.0.270.0000.00818.14
8.0.260.0000.00820.23
8.0.250.0000.00617.03
8.0.240.0000.00816.98
8.0.230.0000.00716.93
8.0.220.0000.00817.01
8.0.210.0080.00016.91
8.0.200.0050.00316.96
8.0.190.0000.00816.93
8.0.180.0040.00417.01
8.0.170.0040.00416.98
8.0.160.0030.00316.91
8.0.150.0000.00816.80
8.0.140.0050.00216.99
8.0.130.0000.00613.43
8.0.120.0040.00416.90
8.0.110.0050.00316.87
8.0.100.0000.00716.96
8.0.90.0070.00016.88
8.0.80.0070.01116.85
8.0.70.0000.00816.77
8.0.60.0000.00717.01
8.0.50.0040.00416.77
8.0.30.0100.00717.18
8.0.20.0140.00817.03
8.0.10.0020.00517.10
8.0.00.0060.01216.68
7.4.330.0000.00515.55
7.4.320.0030.00316.65
7.4.300.0000.00716.70
7.4.290.0000.00816.67
7.4.280.0000.00816.76
7.4.270.0000.00716.58
7.4.260.0000.00613.47
7.4.250.0040.00416.72
7.4.240.0030.00316.60
7.4.230.0050.00216.78
7.4.220.0020.00516.77
7.4.210.0070.01016.68
7.4.200.0040.00416.68
7.4.130.0100.01116.57
7.4.120.0070.01316.80
7.4.110.0090.00916.70
7.4.100.0090.01316.60
7.4.90.0060.01216.52
7.4.80.0110.00816.60
7.4.70.0130.00716.65
7.4.60.0070.01316.70
7.4.50.0110.01116.59
7.4.40.0100.01016.51
7.4.30.0140.01416.36
7.4.20.0150.01116.49
7.4.10.0040.01416.42
7.4.00.0080.01216.55
7.3.330.0040.00416.43
7.3.320.0000.00613.18
7.3.310.0030.00316.32
7.3.300.0030.00316.26
7.3.290.0060.00916.41
7.3.260.0070.01116.44
7.3.230.0070.01016.57
7.3.220.0130.00316.68
7.3.210.0060.01216.30
7.3.200.0130.01016.63
7.3.190.0070.01016.34
7.3.180.0080.01216.64
7.3.170.0070.01416.41
7.3.160.0190.00716.41
7.3.150.0120.00616.25
7.3.140.0110.00816.59
7.3.130.0110.00816.79
7.3.120.0140.00716.39
7.3.110.0160.00816.29
7.3.100.0140.00516.64
7.3.90.0110.00716.35
7.3.80.0130.00916.75
7.3.70.0140.00616.44
7.3.60.0220.00416.46
7.3.50.0140.00616.42
7.3.40.0200.00516.19
7.3.30.0080.01216.57
7.3.20.0080.01016.55
7.3.10.0100.00816.45
7.3.00.0130.00916.44
7.2.340.0050.01216.81
7.2.330.0150.00616.76
7.2.320.0100.01016.75
7.2.310.0170.00316.71
7.2.300.0110.01416.71
7.2.290.0170.00516.16
7.2.280.0050.01816.44
7.2.270.0080.01316.61
7.2.260.0070.01516.51
7.2.250.0170.00416.57
7.2.240.0160.01016.65
7.2.230.0090.00916.70
7.2.220.0120.00916.72
7.2.210.0130.00716.72
7.2.200.0110.00616.70
7.2.190.0100.01416.78
7.2.180.0250.00416.73
7.2.170.0160.00816.67
7.2.160.0180.00316.61
7.2.150.0090.01216.53
7.2.140.0110.00716.92
7.2.130.0110.00816.68
7.2.120.0140.00416.64
7.2.110.0090.00917.00
7.2.100.0130.01016.66
7.2.90.0030.01417.05
7.2.80.0060.01216.56
7.2.70.0110.00816.52
7.2.60.0120.00816.64
7.2.50.0150.00616.54
7.2.40.0160.00316.81
7.2.30.0060.01216.81
7.2.20.0110.00616.95
7.2.10.0120.00616.53
7.2.00.0230.00316.58

preferences:
28.98 ms | 403 KiB | 5 Q