3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "test"; var_dump( pack('NQ>C',"123456789","123456789123456789",1) ); var_dump( pack('N',123456789).pack('C*', (strrev(unpack 'C*', (pack 'Q', 123456789123456789)))).pack('C',1) ); echo "examples"; var_dump( pack('S', 1), pack('L', 1), pack('Q', 1), pack('I', 1) ); var_dump( pack('n', 1), pack('N', 1), pack('J', 1), pack('I', 1) ); var_dump( pack('v', 1), pack('V', 1), pack('P', 1), pack('I', 1) );
based on WB9r7
Output for 7.0.0
Parse error: syntax error, unexpected ''C*'' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in /in/J3vtd on line 8
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected ''C*'' (T_CONSTANT_ENCAPSED_STRING) in /in/J3vtd on line 8
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/J3vtd on line 8
Process exited with code 255.