3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ [ 'Standort' => '', 'Letzte Meldung' => '', 'On-/Offline seit' => '04.05.2022 11:03', 'Online' => '', ], [ 'Standort' => 'Schweiz', 'Letzte Meldung' => '', 'On-/Offline seit' => '11.02.2022 14:59', 'Online' => '', ] ]; $keep = []; array_walk_recursive($input, function($v, $k) use(&$keep) { if (strlen($v)) { $keep[$k] = null; } }); var_export( $keep ? array_map(fn($row) => array_intersect_key($row, $keep), $input) : [] );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'Standort' => '', 'On-/Offline seit' => '04.05.2022 11:03', ), 1 => array ( 'Standort' => 'Schweiz', 'On-/Offline seit' => '11.02.2022 14:59', ), )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
148.5 ms | 405 KiB | 5 Q