3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array(); $test[0]; $test_count = count($test[0]); echo $test_count; ?>
Output for 7.2.0 - 7.3.0rc4
Notice: Undefined offset: 0 in /in/A7B0Y on line 3 Notice: Undefined offset: 0 in /in/A7B0Y on line 4 Warning: count(): Parameter must be an array or an object that implements Countable in /in/A7B0Y on line 4 0
Output for 5.5.0 - 7.1.20
Notice: Undefined offset: 0 in /in/A7B0Y on line 3 Notice: Undefined offset: 0 in /in/A7B0Y on line 4 0
Output for 4.3.0 - 5.4.45
0