3v4l.org

run code in 300+ PHP versions simultaneously
<?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); ?>
Output for git.master, git.master_jit, rfc.property-hooks
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" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
62.6 ms | 401 KiB | 8 Q