3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function _arte_cms_tracking_og_are_settings_null($settings) { // If it is an array, browse it: if (is_array($settings)) { if (empty($settings)) { return TRUE; } else { foreach($settings as $value) { if (!_arte_cms_tracking_og_are_settings_null($value)) { return FALSE; } } return TRUE; } } else { $current_trimmed_value = trim((string)$settings); return $current_trimmed_value == ''; } } $t = array( 'yo' => array('0'), 'ya' => '', ); 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.12.0, 7.0.0 - 7.1.0
NOT EMPTY!
Output for hhvm-3.10.0

Process exited with code 153.