3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_STRICT); $header = array('test'); if (!empty($header[0]['class'])) { echo 'set'; } else { echo 'not set'; }
based on UplEB
Output for 5.0.0 - 5.0.2, 5.4.0 - 7.1.0
not set
Output for 5.0.3 - 5.3.29
set
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/rSX8S on line 2 set