3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $uri = "?sort%5B%5D=1&str%5B%5D=4&curs%5B%5D=1&page=2&page=1&page=2&page=5&page=4&page=3&page=2&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&tesdsd=2"; echo preg_replace("/&page=/", "", $uri);
Output for 4.3.0 - 7.2.0
?sort%5B%5D=1&str%5B%5D=4&curs%5B%5D=1212543211111111111&tesdsd=2