3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"name":null,"value":"","target":null,"alias":"brand","required":1,"showNull":0}]'; var_export(json_decode($json)); echo "\n---\n"; foreach (json_decode($json ?? '[]') as $row) { if ($row->alias === 'brand') { echo $row->value; break; } }

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.1.70.0040.00417.41
8.1.60.0050.00317.55
8.1.50.0040.00417.41
8.1.40.0040.00417.53
8.1.30.0000.00717.54
8.1.20.0090.00017.48
8.1.10.0080.00017.41
8.1.00.0050.00317.49
8.0.200.0000.00716.99
8.0.190.0040.00416.84
8.0.180.0000.00816.98
8.0.170.0040.00416.75
8.0.160.0030.00516.97
8.0.150.0030.00316.82
8.0.140.0130.00016.73
8.0.130.0050.00013.31
8.0.120.0040.00416.75
8.0.110.0070.00016.76
8.0.100.0040.00416.69
8.0.90.0030.00416.71
8.0.80.0050.01116.85
8.0.70.0000.00716.66
8.0.60.0060.00317.00
8.0.50.0070.00016.95
8.0.30.0140.00416.86
8.0.20.0100.01017.00
8.0.10.0040.00416.86
8.0.00.0100.01416.83
7.4.300.0030.00316.50
7.4.290.0000.00716.44
7.4.280.0080.00016.61
7.4.270.0030.00316.50
7.4.260.0000.00713.23
7.4.250.0000.00716.46
7.4.240.0030.00316.59
7.4.230.0000.00716.47
7.4.220.0020.00516.58
7.4.210.0120.00716.56
7.4.200.0050.00216.57
7.4.130.0120.00916.33
7.4.120.0060.01216.43
7.4.110.0120.00616.70
7.4.100.0120.00616.46
7.4.90.0120.00616.43
7.4.80.0130.00419.39
7.4.70.0110.01116.62
7.4.60.0080.01616.63
7.4.50.0090.01216.33
7.4.40.0100.01116.37
7.4.30.0090.00916.43
7.4.20.0100.01316.47
7.4.10.0140.01016.36
7.4.00.0030.01716.64
7.3.330.0020.00516.10
7.3.320.0030.00313.00
7.3.310.0000.00716.23
7.3.300.0000.00716.17
7.3.290.0090.00716.27
7.3.280.0040.01116.21
7.3.260.0130.00316.28
7.3.240.0090.00916.30
7.3.230.0060.01016.51
7.3.210.0030.01616.29
7.3.200.0000.01716.34
7.3.190.0150.00616.29
7.3.180.0130.01016.20
7.3.170.0130.00916.49
7.3.160.0160.00616.39
7.3.150.0130.00716.19
7.3.140.0120.00616.24
7.3.130.0110.00816.32
7.3.120.0130.00616.47
7.3.110.0150.00616.29
7.3.100.0070.01016.47
7.3.90.0070.01016.14
7.3.80.0060.01616.43
7.3.70.0060.01616.40
7.3.60.0120.00916.30
7.3.50.0140.01016.37
7.3.40.0060.01316.27
7.3.30.0090.00916.42
7.3.20.0110.01216.46
7.3.10.0140.00916.50
7.3.00.0100.01016.36
7.2.330.0060.01216.66
7.2.310.0130.00616.68
7.2.300.0110.00916.64
7.2.290.0090.01316.39
7.2.280.0090.01016.71
7.2.270.0100.01016.57
7.2.260.0100.01316.60
7.2.250.0030.01516.69
7.2.240.0100.01316.56
7.2.230.0080.01116.75
7.2.220.0000.01916.68
7.2.210.0130.01016.56
7.2.200.0070.01416.68
7.2.190.0120.01216.55
7.2.180.0130.00916.68
7.2.170.0090.00916.54
7.2.160.0090.00916.56
7.2.150.0170.00716.70
7.2.140.0090.00916.86
7.2.130.0170.00716.54
7.2.120.0080.01716.61
7.2.110.0230.01016.68
7.2.100.0070.01716.61
7.2.90.0150.00916.62
7.2.80.0070.01116.61
7.2.70.0100.01316.48
7.2.60.0120.00816.68
7.2.50.0090.01416.62
7.2.40.0060.01316.74
7.2.30.0120.00816.58
7.2.20.0110.00816.77
7.2.10.0120.01216.71
7.2.00.0070.01716.55

preferences:
11.4 ms | 406 KiB | 5 Q