3v4l.org

run code in 300+ PHP versions simultaneously
<?php $struct = [ 'a1' => [ 'atr' => 'atr_a1' , 'form' => 'form_a1'], 'a1_2' => [ 'atr' => 'atr_a1' , 'form' => 'form_a1_2'], 'a1_3' => [ 'atr' => 'atr_a1_2', 'form' => 'form_a1'], 'b1' => [ 'atr' => 'atr_b1'], 'c1' => [ 'form' => 'form_c1'], 'c1' => [ 'atr' => null, 'form' => 'form_c1'], ]; var_dump(array_column(array_filter($struct, static function (array $s): bool { return $s['atr'] && $s['form']; }), 'atr', 'form'));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "form" in /in/MAnK7 on line 14 array(2) { ["form_a1"]=> string(8) "atr_a1_2" ["form_a1_2"]=> string(6) "atr_a1" }

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:
64.35 ms | 401 KiB | 8 Q