3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list1 = [ [ "first_name" => "Fatima", "last_name" => "A.", "country" => "Algeria", "continent" => "Africa", "age" => 25, "language" => "JavaScript" ], [ "first_name" => "Agustin", "last_name" => "M.", "country" => "Chile", "continent" => "Americas", "age" => 37, "language" => "C" ], [ "first_name" => "Jing", "last_name" => "X", "country" => "China", "continent" => "Asia", "age" => 39, "language" => "Ruby" ], [ "first_name" => "Laia", "last_name" => "P.", "country" => "Andorra", "continent" => "Europe", "age" => 55, "language" => "Ruby" ], [ "first_name" => "Oliver", "last_name" => "Q.", "country" => "Australia", "continent" => "Oceania", "age" => 65, "language" => "PHP" ] ]; var_dump(!array_diff(['Africa', 'Americas', 'Asia', 'Europe', 'Oceania'], array_unique(array_column($list1, 'continent'))));
based on 1PRlC
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.1.3, 7.1.5 - 7.3.0alpha1
bool(true)
Output for 7.1.4

Process exited with code 137.