3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(decbin("1")); for ($i=0; $i<10; $i++) { var_dump(decbin("1" << $i)); }
Output for 4.3.0 - 7.1.0
string(1) "1" string(1) "1" string(2) "10" string(3) "100" string(4) "1000" string(5) "10000" string(6) "100000" string(7) "1000000" string(8) "10000000" string(9) "100000000" string(10) "1000000000"