3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 400 / 100; echo $var . ' type: ' . gettype($var) ."\r\n"; echo (double) $var . "\r\n"; var_dump($var == (double) $var); echo "\r\n"; $var2 = 563/100; echo $var2 . ' type: ' . gettype($var2);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
4 type: integer 4 bool(true) 5.63 type: double