3v4l.org

run code in 300+ PHP versions simultaneously
<?php $broke = '%7B%22name%22%3A%22peterchan%22%2C%22phone%22%3A%2212345678%22%2C%22password%22%3A%226kxhSJM6iLB0kZ9LZGCEUQ%3S%3D%0A%22%7D'; $fixed = '%7B%22name%22%3A%22peterchan%22%2C%22phone%22%3A%2212345678%22%2C%22password%22%3A%226kxhSJM6iLB0kZ9LZGCEUQ%3S%3D%5Cn%22%7D'; echo "broken\n"; var_dump(urldecode($broke)); var_dump(json_decode(urldecode($broke))); echo "\nfixed\n"; var_dump(urldecode($fixed)); var_dump(json_decode(urldecode($fixed)));
Output for git.master, git.master_jit, rfc.property-hooks
broken string(80) "{"name":"peterchan","phone":"12345678","password":"6kxhSJM6iLB0kZ9LZGCEUQ%3S= "}" NULL fixed string(81) "{"name":"peterchan","phone":"12345678","password":"6kxhSJM6iLB0kZ9LZGCEUQ%3S=\n"}" object(stdClass)#1 (3) { ["name"]=> string(9) "peterchan" ["phone"]=> string(8) "12345678" ["password"]=> string(27) "6kxhSJM6iLB0kZ9LZGCEUQ%3S= " }

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:
28.62 ms | 406 KiB | 5 Q