3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'ticket_number' => 'sdfsdfsdf 2', 'strategy_id' => '5', 'journal_entries_strategy_conditions' => [ 0 => [ 'strategies_condition_id' => '' ], 1 => [ 'strategies_condition_id' => '1' ] ], 'timeframe' => '', ]; $filtered = array_filter(array_column($arr['journal_entries_strategy_conditions'], 'strategies_condition_id')); $arr['journal_entries_strategy_conditions'] = array_intersect_key($arr['journal_entries_strategy_conditions'], $filtered); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["ticket_number"]=> string(11) "sdfsdfsdf 2" ["strategy_id"]=> string(1) "5" ["journal_entries_strategy_conditions"]=> array(1) { [1]=> array(1) { ["strategies_condition_id"]=> string(1) "1" } } ["timeframe"]=> string(0) "" }

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:
30.72 ms | 409 KiB | 6 Q