3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "~^&multi&[^&]+(&((?|p-(?<sad>[1-9]\d*)|page-(?<sad>[1-9]\d*))))?&[^&]+(&((?|p-(?<gogosi>[1-9]\d*)|page-(?<gogosi>[1-9]\d*))))?&?$~J"; $string = "&multi&mickael&p-23&george&page-34"; if (preg_match($pattern, $string, $matches)) { print_r($matches); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => &multi&mickael&p-23&george&page-34 [1] => &p-23 [2] => p-23 [sad] => 23 [3] => 23 [4] => &page-34 [5] => page-34 [gogosi] => 34 [6] => 34 )

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:
179.44 ms | 405 KiB | 5 Q