3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $messageId = unpack('P', base64_decode('g6H9UVrV4lI'))[1]; } catch (\Exception $exp) { $messageId = 'noop'; } print_r($messageId);
Output for 5.6.3 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
5972570639746048387
Output for 5.6.0 - 5.6.2
Warning: unpack(): Invalid format type P in /in/Q3bhg on line 3

preferences:
191.76 ms | 401 KiB | 292 Q