3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ ["name"=>"col11", "type"=>"varchar"], ["name"=>"col2", "type"=>"int"] ]; $arr2 = [ ["name"=>"col1", "type"=>"varchar"], ["name"=>"col2", "type"=>"int"] , ["name"=>"col3", "type"=>"date"] ]; $arr3 = [ ["name"=>"col1", "type"=>"varchar"], ["name"=>"col3", "type"=>"int"] ]; $arrays = [$arr1, $arr2, $arr3]; $arrays_extended = []; foreach($arrays as $row => $innerArray){ foreach($innerArray as $innerRow => $value){ array_push($arrays_extended, $value); } } var_dump(array_unique($arrays_extended));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/1okcm on line 24 Warning: Array to string conversion in /in/1okcm on line 24 Warning: Array to string conversion in /in/1okcm on line 24 Warning: Array to string conversion in /in/1okcm on line 24 Warning: Array to string conversion in /in/1okcm on line 24 Warning: Array to string conversion in /in/1okcm on line 24 Warning: Array to string conversion in /in/1okcm on line 24 array(1) { [0]=> array(2) { ["name"]=> string(5) "col11" ["type"]=> string(7) "varchar" } }

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:
133.94 ms | 407 KiB | 5 Q