3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('SOMEVAL', array(3,4,5)); var_dump(strlen(SOMEVAL)); ?>
Output for 7.0.0 - 7.1.0
Warning: strlen() expects parameter 1 to be string, array given in /in/ug2X8 on line 4 NULL
Output for 4.3.0 - 5.6.28
Warning: Constants may only evaluate to scalar values in /in/ug2X8 on line 2 Notice: Use of undefined constant SOMEVAL - assumed 'SOMEVAL' in /in/ug2X8 on line 4 int(7)