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'), 'hi'))?'yes':'no';
based on SFTMn
Output for 4.3.0 - 7.2.0
no