3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump("0xFF" == "255.0"); var_dump((int)"0xFF"); var_dump((int) "255.0");
based on EHke9
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.2.0, 7.0.0 - 7.2.0
bool(false) int(0) int(255)
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.2, 5.2.1 - 5.6.28
bool(true) int(0) int(255)