3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(0.0000); var_dump(0.0000 === 0.0000000); var_dump(0.0000 == '0'); $var = 0.0000; var_dump(empty($var)); $var = '0.0000'; var_dump(empty($var)); var_dump($var > 0); $var = '1.0000'; var_dump($var > 0);
Output for 4.3.0 - 7.1.7, 7.2.0
float(0) bool(true) bool(true) bool(true) bool(false) bool(false) bool(true)
Output for 7.1.10

Process exited with code 137.