3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( array(1, 2, 3), 'toto', array(4, 5, 6), ); echo count($arr), PHP_EOL, count($arr, COUNT_RECURSIVE), PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
3 9
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MZ3f7 on line 9 PHP_EOL9 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MZ3f7 on line 9 PHP_EOL