3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", 'a:15:{s:2:"id";s:3:"338";s:9:"catalogid";s:2:"13";s:9:"user_name";s:15:"Jessica Surez";s:10:"user_email";s:26:"3694.newemail@bellefit.com";s:9:"user_city";s:11:"Roanoke, VA";s:12:"short_review";s:17:"AMAZING, LOVE IT!";s:11:"long_review";s:947:"I am not a review person, but this one deserves a chance.This gridle is the best ever and ever!!!!! I was so happy when I had my LO(the first one) but at the same time sad because my body was so different (you know what I mean):( But here comes the good part, when I was 37 weeks, I began looking for a postpartum gridle and I bought this one after the good reviews I read online. So good I did it!! The very next day after delivery (I had a natural unmedicated home birth) I put this on and I feLT AMAZING! the comression it made on my abs was so confortable that I had it on for 6 hours in a row! next day I had it for almost 12 hours. Since then I have been using it every day! the results are amazing!I was not sure aout the size but I followed the online directions on the website and voila!!! Size M fits perfect.Now I am on my third month postpartum, so happy with my purchase (my husband is also very happy ;)A must for postpartum women!! ";s:6:"rating";s:1:"5";s:11:"review_date";s:9:"4/15/2013";s:8:"approved";s:1:"1";s:6:"userid";s:4:"3694";s:6:"userip";s:14:"75.147.222.246";s:12:"rev_verified";s:1:"0";s:11:"rev_helpful";s:1:"0";s:9:"rev_votes";s:1:"0";}'); var_dump(unserialize($data));
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/n9jjQ on line 2 Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /in/n9jjQ on line 3 bool(false)
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: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/n9jjQ on line 2 Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /in/n9jjQ on line 3 bool(false)
Output for 7.0.0 - 7.0.20, 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
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/n9jjQ on line 2 bool(false)
Output for 5.6.0 - 5.6.25
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/n9jjQ on line 2 array(15) { ["id"]=> string(3) "338" ["catalogid"]=> string(2) "13" ["user_name"]=> string(13) "Jessica Surez" ["user_email"]=> string(26) "3694.newemail@bellefit.com" ["user_city"]=> string(11) "Roanoke, VA" ["short_review"]=> string(17) "AMAZING, LOVE IT!" ["long_review"]=> string(947) "I am not a review person, but this one deserves a chance.This gridle is the best ever and ever!!!!! I was so happy when I had my LO(the first one) but at the same time sad because my body was so different (you know what I mean):( But here comes the good part, when I was 37 weeks, I began looking for a postpartum gridle and I bought this one after the good reviews I read online. So good I did it!! The very next day after delivery (I had a natural unmedicated home birth) I put this on and I feLT AMAZING! the comression it made on my abs was so confortable that I had it on for 6 hours in a row! next day I had it for almost 12 hours. Since then I have been using it every day! the results are amazing!I was not sure aout the size but I followed the online directions on the website and voila!!! Size M fits perfect.Now I am on my third month postpartum, so happy with my purchase (my husband is also very happy ;)A must for postpartum women!! " ["rating"]=> string(1) "5" ["review_date"]=> string(9) "4/15/2013" ["approved"]=> string(1) "1" ["userid"]=> string(4) "3694" ["userip"]=> string(14) "75.147.222.246" ["rev_verified"]=> string(1) "0" ["rev_helpful"]=> string(1) "0" ["rev_votes"]=> string(1) "0" }

preferences:
188.62 ms | 405 KiB | 231 Q