3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $quantity = false; print count($test);
Output for 7.2.0 - 7.3.0rc4
Notice: Undefined variable: test in /in/25VXo on line 3 Warning: count(): Parameter must be an array or an object that implements Countable in /in/25VXo on line 3 0
Output for 5.0.4 - 7.1.20
Notice: Undefined variable: test in /in/25VXo on line 3 0
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: test in /in/25VXo on line 3 0