3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 50.853; $whole = intval($n); $fraction = $n * 100 % 100; var_dump($whole); var_dump($fraction);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
155.43 ms | 2016 KiB | 9 Q