3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pwd = "abc123AABC44555"; $pattern = '/(.)\1+/'; $x = str_split($pwd); sort($x); $pwdSorted = implode("", $x); echo (int)preg_match_all($pattern, $pwdSorted, $repChars).PHP_EOL; print_r($repChars);
Output for git.master, git.master_jit, rfc.property-hooks
3 Array ( [0] => Array ( [0] => 44 [1] => 555 [2] => AA ) [1] => Array ( [0] => 4 [1] => 5 [2] => A ) )

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.75 ms | 401 KiB | 8 Q