3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = 'Hello world!'; for($i = 0; $i < strlen($s); $i++) { var_dump(decbin(ord($s[$i]))); }
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(7) "1001000" string(7) "1100101" string(7) "1101100" string(7) "1101100" string(7) "1101111" string(6) "100000" string(7) "1110111" string(7) "1101111" string(7) "1110010" string(7) "1101100" string(7) "1100100" string(6) "100001"