3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array["a"] = "Foo"; $array["b"] = "Bar"; $array["c"] = "Baz"; $array["d"] = "Wom"; $str = serialize($array); $strenc = urlencode($str); print $str . "\n"; print $strenc . "\n"; $arr = unserialize(urldecode($strenc)); var_dump($arr); ?>
based on uG05l
Output for 4.3.0 - 7.2.0
a:4:{s:1:"a";s:3:"Foo";s:1:"b";s:3:"Bar";s:1:"c";s:3:"Baz";s:1:"d";s:3:"Wom";} a%3A4%3A%7Bs%3A1%3A%22a%22%3Bs%3A3%3A%22Foo%22%3Bs%3A1%3A%22b%22%3Bs%3A3%3A%22Bar%22%3Bs%3A1%3A%22c%22%3Bs%3A3%3A%22Baz%22%3Bs%3A1%3A%22d%22%3Bs%3A3%3A%22Wom%22%3B%7D array(4) { ["a"]=> string(3) "Foo" ["b"]=> string(3) "Bar" ["c"]=> string(3) "Baz" ["d"]=> string(3) "Wom" }