3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input='46.9'; $floor=floor($input); $tens=round($input,-1); echo $floor; echo $tens; $array = array( '0', '20a' => '0-20', '50a' => '20-50', '100a' => '50-100', '200a' => '100-200', '500a' => '200-500', ); print_r($array);
based on cjkXj
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
4650Array ( [0] => 0 [20a] => 0-20 [50a] => 20-50 [100a] => 50-100 [200a] => 100-200 [500a] => 200-500 )