3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $messageId = unpack('P', base64_decode('g6H9UVrV4lI'))[1]; } catch (\Exception $exp) { $messageId = 'noop'; } print_r($messageId);
based on q5DTN
Output for 5.6.3 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
5972570639746048387
Output for 5.6.0 - 5.6.2
Warning: unpack(): Invalid format type P in /in/Q3bhg on line 3