3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = "lol"; (array) $i; var_dump($i); echo count($id);
based on doXOX
Output for 7.2.0
string(3) "lol" Notice: Undefined variable: id in /in/UPks4 on line 9 Warning: count(): Parameter must be an array or an object that implements Countable in /in/UPks4 on line 9 0
Output for 5.3.19 - 7.1.10
string(3) "lol" Notice: Undefined variable: id in /in/UPks4 on line 9 0