3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo rawurlencode('green and red'); echo "\n"; echo urlencode('green and red'); echo "\n"; echo "\n"; echo rawurldecode('green+and+red'); echo "\n"; echo urldecode('green+and+red');
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.26, 8.0.0 - 8.0.13, 8.1rc1 - rc3
green%20and%20red green+and+red green+and+red green and red

preferences:
29.73 ms | 460 KiB | 5 Q