3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mydata = 'a:12:{s:12:"base_confing";s:0:"";s:7:"enabled";s:2:"yes";s:5:"title";s:15:"بانک ملت";s:11:"description";s:117:"پرداخت امن به وسیله کلیه کارت های عضو شتاب از طریق درگاه بانک ملت";s:15:"account_confing";s:0:"";s:8:"terminal";s:13:"jafarterminal";s:8:"username";s:9:"jafaruser";s:8:"password";s:9:"jafarpass";s:15:"payment_confing";s:0:"";s:15:"success_massage";s:83:"با تشکر از شما . سفارش شما با موفقیت پرداخت شد .";s:14:"failed_massage";s:178:"پرداخت شما ناموفق بوده است . لطفا مجددا تلاش نمایید یا در صورت بروز اشکال با مدیر سایت تماس بگیرید .";s:17:"cancelled_massage";s:79:"پرداخت به دلیل انصراف شما ناتمام باقی ماند .";};}'; $mydata = unserialize($mydata); echo $mydata['enabled'];
Output for 8.3.0 - 8.3.4, 8.3.6
Warning: unserialize(): Error at offset 54 of 833 bytes in /in/lK1R2 on line 4 Warning: Trying to access array offset on false in /in/lK1R2 on line 5
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: unserialize(): Error at offset 54 of 833 bytes in /in/lK1R2 on line 4 Warning: Trying to access array offset on false in /in/lK1R2 on line 5
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Notice: unserialize(): Error at offset 54 of 833 bytes in /in/lK1R2 on line 4 Warning: Trying to access array offset on value of type bool in /in/lK1R2 on line 5
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: unserialize(): Error at offset 54 of 833 bytes in /in/lK1R2 on line 4 Notice: Trying to access array offset on value of type bool in /in/lK1R2 on line 5
Output for 7.3.32 - 7.3.33, 7.4.26
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
Notice: unserialize(): Error at offset 54 of 833 bytes in /in/lK1R2 on line 4

preferences:
183.63 ms | 402 KiB | 173 Q