3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input; var_dump(count($input));
based on sQETi
Output for 7.2.0
Notice: Undefined variable: input in /in/VJVpU on line 4 Warning: count(): Parameter must be an array or an object that implements Countable in /in/VJVpU on line 4 int(0)
Output for 5.1.0 - 7.1.10
Notice: Undefined variable: input in /in/VJVpU on line 4 int(0)
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: input in /in/VJVpU on line 2 Notice: Undefined variable: input in /in/VJVpU on line 4 int(0)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: input in /in/VJVpU on line 2 Notice: Undefined variable: input in /in/VJVpU on line 4 int(0)