3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'aa'; if(substr($str, 0, 3) == pack("CCC", array(0xaa, 0xbb, 0xcc))) { $str = substr($str, 3); }
based on uKrDv
Output for 4.3.2 - 7.1.0
Warning: pack(): Type C: too few arguments in /in/ejk0L on line 4
Output for 4.3.0 - 4.3.1
Warning: pack() [http://www.php.net/function.pack]: Type C: too few arguments in /in/ejk0L on line 4