3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 0 => [ "label" => "Radiator", "details" => [[ "label" => "Condition", "value" => "New", ], [ "label" => "Type", "value" => "Wall", ]], ], 1 => [ "label" => "Airco", "details" => [[ "label" => "Condition", "value" => "New", ], [ "label" => "Type", "value" => "", ]], ], 2 => [ "label" => "Refrigerator", "details" => [[ "label" => "Condition", "value" => "Bad", ], [ "label" => "Type", "value" => "Wall", ]], ], ]; foreach($array as &$row){ foreach($row['details'] as $key => $record){ if(strlen($record['value']) == 0){ unset($row['details'][$key]); } } } print_r($array);

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.20.0170.00318.07
8.4.10.0030.00623.87
8.3.150.0200.00016.42
8.3.140.0050.00318.99
8.3.130.0030.00718.36
8.3.120.0080.01218.87
8.3.110.0060.00320.94
8.3.100.0090.00624.06
8.3.90.0050.00326.77
8.3.80.0030.00618.31
8.3.70.0030.01616.50
8.3.60.0150.00018.45
8.3.50.0140.00316.46
8.3.40.0080.00820.34
8.3.30.0170.00320.93
8.3.20.0080.00523.92
8.3.10.0060.00724.13
8.3.00.0080.00624.56
8.2.260.0140.00420.60
8.2.250.0060.00316.98
8.2.240.0040.00417.17
8.2.230.0050.00322.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0080.00318.41
8.2.190.0040.01416.75
8.2.180.0140.00716.63
8.2.170.0080.00819.09
8.2.160.0120.00622.96
8.2.150.0090.00524.31
8.2.140.0050.00823.81
8.2.130.0030.01024.56
8.2.120.0070.00421.46
8.2.110.0090.00522.52
8.2.100.0040.01020.43
8.2.90.0090.00220.50
8.2.80.0090.00221.06
8.2.70.0140.00351.15
8.2.60.0110.00651.15
8.2.50.0150.00351.15
8.2.40.0120.00551.15
8.2.30.0090.01051.15
8.2.20.0100.00651.15
8.2.10.0090.00751.15
8.2.00.0040.01151.15
8.1.310.0090.00918.21
8.1.300.0040.01418.48
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0040.00624.33
8.1.260.0090.00325.10
8.1.250.0070.00426.00
8.1.240.0040.00723.43
8.1.230.0060.00822.80
8.1.220.0080.00520.35
8.1.210.0090.00420.87
8.1.200.0100.00851.15
8.1.190.0060.00951.15
8.1.180.0100.00751.15
8.1.170.0120.00651.15
8.1.160.0150.00551.15
8.1.150.0080.01051.15
8.1.140.0160.00251.15
8.1.130.0120.00751.15
8.1.120.0090.00751.15
8.1.110.0120.00451.15
8.1.100.0060.00951.15
8.1.90.0090.00751.15
8.1.80.0120.00551.15
8.1.70.0070.00851.15
8.1.60.0090.00751.15
8.1.50.0090.00751.15
8.1.40.0120.00451.15
8.1.30.0140.00251.15
8.1.20.0120.00451.15
8.1.10.0100.00751.15
8.1.00.0130.00451.15
8.0.300.0070.00322.43
8.0.290.0150.00751.15
8.0.280.0210.00651.15
8.0.270.0120.00651.15
8.0.260.0150.00851.15
8.0.250.0140.01051.15
8.0.240.0170.00951.15
8.0.230.0180.00551.15
8.0.220.0140.00451.15
8.0.210.0150.00751.15
8.0.200.0200.00851.15
8.0.190.0190.00851.15
8.0.180.0170.00551.15
8.0.170.0170.00651.15
8.0.160.0140.00751.15
8.0.150.0180.00351.15
8.0.140.0200.00351.15
8.0.130.0180.00751.15
8.0.120.0190.00651.15
8.0.110.0210.00551.15
8.0.100.0140.00751.15
8.0.90.0140.00851.15
8.0.80.0190.00251.15
8.0.70.0090.00651.15
8.0.60.0190.00351.15
8.0.50.0100.01151.15
8.0.30.0120.00351.15
8.0.20.0100.00651.15
8.0.10.0140.00651.15

preferences:
32.36 ms | 403 KiB | 5 Q