3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = rawurlencode('a b c +/'); $x2 = urlencode('a b c +/'); var_dump($x, rawurldecode($x), urldecode($x)); var_dump($x2, rawurldecode($x2), urldecode($x2));
based on Eonif
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc6
string(18) "a%20b%20c%20%2B%2F" string(8) "a b c +/" string(8) "a b c +/" string(12) "a+b+c+%2B%2F" string(8) "a+b+c++/" string(8) "a b c +/"