3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/-([a-z]{2})-.*/"; $strings = [ "cricket-ck-game-play", "hand-ball-hb-game-play", "volley-ball-vb-game-play", "soccer-sc-game-play" ]; foreach ($strings as $str) { print_r(preg_split($pattern, $str, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY)); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => cricket [1] => ck ) Array ( [0] => hand-ball [1] => hb ) Array ( [0] => volley-ball [1] => vb ) Array ( [0] => soccer [1] => 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:
165.42 ms | 405 KiB | 5 Q