3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = Array( Array ( 0 => 'Charcoal', 1 => 'Natural Gas', 2 => 'Combo' ), Array ( 0 => 'Charcoal', 1 => 'Propane', 2 => 'Combo' ), Array ( 0 => 'Charcoal', 1 => 'Propane', 2 => 'Natural Gas', 3 => 'Combo' ), Array ( 0 => 'Natural Gas', ), Array ( 0 => 'Natural Gas', 1 => 'Propane', ), Array ( 0 => 'Propane', ), Array ( 0 => '660 sq. inches' ), Array ( 0 => '740 sq. inches' ), Array ( 0 => '761 sq. inches' ), Array ( 0 => '788 sq. inches' ), Array ( 0 => '792 sq. inches' ) ); $result = array_unique(call_user_func_array('array_merge', $data)); var_dump($result);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(9) { [0]=> string(8) "Charcoal" [1]=> string(11) "Natural Gas" [2]=> string(5) "Combo" [4]=> string(7) "Propane" [14]=> string(14) "660 sq. inches" [15]=> string(14) "740 sq. inches" [16]=> string(14) "761 sq. inches" [17]=> string(14) "788 sq. inches" [18]=> string(14) "792 sq. inches" }