3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo ord(''); // 0 var_dump(chr(0)); // string(1) "" var_dump('' === chr(0)); // false var_dump(chr(ord('')) === chr(0)); // true
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
0string(1) "" bool(false) bool(true)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/XQ1jR on line 5
Process exited with code 255.