3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = preg_replace_callback('!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.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Fatal error: Uncaught TypeError: preg_replace_callback(): Argument #2 ($callback) must be a valid callback, function "'s:'.strlen('$2').':"$2";'" not found or invalid function name in /in/svqhs:2 Stack trace: #0 /in/svqhs(2): preg_replace_callback('!s:(\\d+):"(.*?)...', ''s:'.strlen('$2...', 'a:15:{s:2:"id";...') #1 {main} thrown in /in/svqhs on line 2
Process exited with code 255.
Output for 5.6.0 - 5.6.24, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Warning: preg_replace_callback(): Requires argument 2, ''s:'.strlen('$2').':"$2";'', to be a valid callback in /in/svqhs on line 2 Notice: unserialize(): Error at offset 87 of 1412 bytes in /in/svqhs on line 3 bool(false)
Output for 7.3.32 - 7.3.33
Warning: preg_replace_callback(): Requires argument 2, ''s:'.strlen('$2').':"$2";'', to be a valid callback in /in/svqhs on line 2 bool(false)

preferences:
45.8 ms | 408 KiB | 5 Q