3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 123; $b = (string)$a; for ($b = 0;$b <= count($b); $b++); echo $b;
based on 6e4Dm
Output for 7.2.6 - 7.3.0rc3
Warning: count(): Parameter must be an array or an object that implements Countable in /in/tMDa2 on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/tMDa2 on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/tMDa2 on line 6 2
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.20
2