3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('SOMEVAL', array(3,4,5)); var_dump(strlen(SOMEVAL)); ?>
Output for 7.0.0 - 7.2.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.30, hhvm-3.10.1 - 3.17.3
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)