3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $header = array('test'); if (is_array($header[0]) && isset($header[0]['class'])) { echo $header[0]['class']; } else { echo 'not set'; }
based on gJCOS
Output for 4.3.0 - 7.1.7
not set