3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decodedMailserviceMessageId = base64_decode('fXPz_eGH0xU'); $mailserviceMessageId = unpack('P', $decodedMailserviceMessageId)[1]; print_r($mailservicMessageId);
Output for 8.3.0 - 8.3.4, 8.3.6
Warning: unpack(): Type P: not enough input values, need 8 values but only 7 were provided in /in/unnpg on line 4 Warning: Trying to access array offset on false in /in/unnpg on line 4 Warning: Undefined variable $mailservicMessageId in /in/unnpg on line 6
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: unpack(): Type P: not enough input values, need 8 values but only 7 were provided in /in/unnpg on line 4 Warning: Trying to access array offset on false in /in/unnpg on line 4 Warning: Undefined variable $mailservicMessageId in /in/unnpg on line 6
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: unpack(): Type P: not enough input, need 8, have 7 in /in/unnpg on line 4 Warning: Trying to access array offset on value of type bool in /in/unnpg on line 4 Warning: Undefined variable $mailservicMessageId in /in/unnpg on line 6
Output for 7.4.0 - 7.4.33
Warning: unpack(): Type P: not enough input, need 8, have 7 in /in/unnpg on line 4 Notice: Trying to access array offset on value of type bool in /in/unnpg on line 4 Notice: Undefined variable: mailservicMessageId in /in/unnpg on line 6
Output for 7.3.32 - 7.3.33
Warning: unpack(): Type P: not enough input, need 8, have 7 in /in/unnpg on line 4
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31
Warning: unpack(): Type P: not enough input, need 8, have 7 in /in/unnpg on line 4 Notice: Undefined variable: mailservicMessageId in /in/unnpg on line 6

preferences:
141.92 ms | 402 KiB | 173 Q