3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $argv[1] = '24601.283'; list($a, $b)=explode('.',$argv[1]); $i = 1; while($i > count($a)) { $c[] = floor($a / (10 * $i++)); } print_r($c);
based on 48FrY
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/YpDJ7 on line 8 Notice: Undefined variable: c in /in/YpDJ7 on line 12
Output for 5.3.21 - 7.1.10
Notice: Undefined variable: c in /in/YpDJ7 on line 12