3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((string) '0010e2'); var_dump((string) '0x1234Ab' == (string) '1193131'); var_dump((string) '0xABCdef' == (string) ' 0xABCdef');
based on gEro9
Output for 7.0.0 - 7.2.0
string(6) "0010e2" bool(false) bool(false)
Output for 5.3.18 - 5.6.28
string(6) "0010e2" bool(true) bool(true)