3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr_a = array("AAA","","CCC",""); $arr_b = array("a1","b1","a2","b2","a3","b3","a4","b4"); $arr_c = array_chunk($arr_b,2); $c = array_combine($arr_a,$arr_c); $limp= array_filter($c); $filteredkeys = array_filter(array_keys($limp)); $filtered = array_intersect_key($limp, array_flip($filteredkeys)); var_dump($filtered);
Output for git.master_jit, git.master, rfc.property-hooks
array(2) { ["AAA"]=> array(2) { [0]=> string(2) "a1" [1]=> string(2) "b1" } ["CCC"]=> array(2) { [0]=> string(2) "a3" [1]=> string(2) "b3" } }

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