3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = ' 0xABCdef'; $y = hexdec($x); $a = '0xABCdef'; $b = hexdec($a); var_dump($a); echo "\n"; var_dump($b); echo "\n"; var_dump($x); echo "\n"; var_dump($y); echo "\n";
based on 5IASM
Output for 5.3.19 - 7.2.0
string(8) "0xABCdef" int(11259375) string(9) " 0xABCdef" int(11259375)