3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i=count(10); for($i=0; $i<=$j; $i++) { echo $i; }
Output for 7.2.0 - 7.2.6
Warning: count(): Parameter must be an array or an object that implements Countable in /in/v4UeX on line 3 Notice: Undefined variable: j in /in/v4UeX on line 5 0 Notice: Undefined variable: j in /in/v4UeX on line 5
Output for 5.0.4 - 7.1.20
Notice: Undefined variable: j in /in/v4UeX on line 5 0 Notice: Undefined variable: j in /in/v4UeX on line 5
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: j in /in/v4UeX on line 5 0 Notice: Undefined variable: j in /in/v4UeX on line 5