3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = explode('.',array()); print_r(count($array)); var_dump($array);
Output for 7.2.0
Warning: explode() expects parameter 2 to be string, array given in /in/pfFA2 on line 2 Warning: count(): Parameter must be an array or an object that implements Countable in /in/pfFA2 on line 3 0NULL
Output for 5.3.1 - 7.1.10
Warning: explode() expects parameter 2 to be string, array given in /in/pfFA2 on line 2 0NULL
Output for 4.3.0 - 5.3.0
Notice: Array to string conversion in /in/pfFA2 on line 2 1array(1) { [0]=> string(5) "Array" }