3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
NOT EMPTY!

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
59.04 ms | 401 KiB | 8 Q