3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function bindump($chr) { printf("%016b\n", ord($ord)); } $one = chr(1); bindump($one); for ($i=0; $i<10; $i++) { bindump($one << $i); }
Output for 7.1.0
Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Warning: A non-numeric value encountered in /in/1deHU on line 13 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000
Output for 5.0.4 - 7.0.14
Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000 Notice: Undefined variable: ord in /in/1deHU on line 5 0000000000000000