3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var; $res = count($var); var_dump($res);
based on htVQX
Output for 7.2.0
Notice: Undefined variable: var in /in/8ijbn on line 5 Warning: count(): Parameter must be an array or an object that implements Countable in /in/8ijbn on line 5 int(0)
Output for 5.3.19 - 7.1.10
Notice: Undefined variable: var in /in/8ijbn on line 5 int(0)