3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function _arte_cms_tracking_og_are_settings_null($multiarray) { if(is_array($multiarray) and !empty($multiarray)){ $tmp = array_shift($multiarray); if(!_arte_cms_tracking_og_are_settings_null($multiarray) or !_arte_cms_tracking_og_are_settings_null($tmp)){ return false; } return true; } if(empty($multiarray)){ return true; } return false; } $t = array("test"); if (_arte_cms_tracking_og_are_settings_null($t)) { echo "EMPTY"; }else { echo "NOT EMPTY!"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
NOT EMPTY!