3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $bin = pack("a3", "中");//中 echo "十六进制: 0x" . bin2hex($bin) . "\n";//0xe4b8ad
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
中十六进制: 0xe4b8ad
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/atd8P on line 4
Process exited with code 255.