3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "cricket-ck-game-play", "hand-ball-hb-game-play", "volley-ball-vb-game-play", "soccer-sc-game-play" ]; $pattern = "/\b(\w{3,}(?:-(?:\w{3,}))*)-(\w{2})-game-play\b/"; foreach ($strings as $str) { preg_match($pattern, $str, $matches); print_r($matches); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => cricket-ck-game-play [1] => cricket [2] => ck ) Array ( [0] => hand-ball-hb-game-play [1] => hand-ball [2] => hb ) Array ( [0] => volley-ball-vb-game-play [1] => volley-ball [2] => vb ) Array ( [0] => soccer-sc-game-play [1] => soccer [2] => sc )

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:
25.13 ms | 406 KiB | 5 Q