3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "\n",decbin(12),"\n"; echo is_numeric(decbin(12))? 'true' : 'false'; echo "\n",bindec(decbin(12) + 1),"\n"; echo "\n0x",dechex(12),"\n"; echo is_numeric(dechex(12))? 'true' : 'false'; echo "\n",hexdec(dechex(12) + 1),"\n";
based on Gdumv
Output for 7.1.0 - 7.2.0
1100 true 13 0xc false Warning: A non-numeric value encountered in /in/8QaBj on line 10 1
Output for 5.3.19 - 7.0.20
1100 true 13 0xc false 1