3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function dgs_ae( $array, $keys ) { $out = true; $_k = (is_array($keys))?$keys:array($keys); foreach ($_k as $k) if (!($out = (isset($array[$k]) && !empty($array[$k])))) break; return $out; } echo (dgs_ae(array('hi' => 'there', 'there' => 'you go'), array('hi', 'there')))?'yes':'no';
based on H0Bad
Output for 4.3.0 - 7.2.0
yes