3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "list page.php?cpage=1, list page.php?cpage=2, list page.php?cpage=3 thats all"; preg_match_all("/cpage=[0-9]/", $string, $matches); foreach($matches[0] as $value) { $value = str_replace("?cpage=", "/", $value); echo $value . '/'; } //echo $string; //hasil list page.php1, list page.php2, list page.php3 thats all //yg diinginkan list page.php/1/, list page.php/2/, list page.php/3/ thats all
Output for git.master, git.master_jit, rfc.property-hooks
cpage=1/cpage=2/cpage=3/

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:
63.08 ms | 401 KiB | 8 Q