3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array_fruit = array('りんご', 'メロン', 'トマト'); $count1 = count($array_fruit); var_dump($count1); $hoge = NULL; $count1 = count($hoge); var_dump($count1);
Output for 7.2.0 - 7.3.0rc4
int(3) Warning: count(): Parameter must be an array or an object that implements Countable in /in/gQgaW on line 6 int(0)
Output for 4.3.0 - 7.1.20
int(3) int(0)