3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function compareNumeric($x, $y) { $x = floatval($x); $y = floatval($y); return $x > $y ? 1 : ($x === $y ? 0 : -1); } echo compareNumeric(true, false);
Output for 5.3.17 - 7.2.0
1