3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? var_dump((int) "0x123"); // int(0) var_dump((float) "0x123"); // float(0)
based on NWPPT
Output for 5.4.0 - 7.2.0
int(0) float(0)
Output for 4.3.0 - 5.3.29
<? var_dump((int) "0x123"); // int(0) var_dump((float) "0x123"); // float(0)