3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "foo\r\nbar"; $urlencoded = urlencode($string); var_dump($urlencoded); $urldecoded = urldecode($urlencoded); var_dump($urldecoded);
Output for 4.3.0 - 7.1.0
string(12) "foo%0D%0Abar" string(8) "foo bar"