3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'visitPoints'=>[ 20=>[2,5,6,8,10,11], 35=>[2,5,6] ], 'islands'=>[ 20=>[5,10,11], 35=>[5,6] ], 'animals'=>[ 20=>[5,11] ,35=>[] ] ]; $result = [ 20=>[5,11], 35=>[] ]; print_r($array);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [visitPoints] => Array ( [20] => Array ( [0] => 2 [1] => 5 [2] => 6 [3] => 8 [4] => 10 [5] => 11 ) [35] => Array ( [0] => 2 [1] => 5 [2] => 6 ) ) [islands] => Array ( [20] => Array ( [0] => 5 [1] => 10 [2] => 11 ) [35] => Array ( [0] => 5 [1] => 6 ) ) [animals] => Array ( [20] => Array ( [0] => 5 [1] => 11 ) [35] => Array ( ) ) )

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:
29.59 ms | 408 KiB | 5 Q