3v4l.org

run code in 300+ PHP versions simultaneously
<? $str = "1234567 foo bar 122345678 baz 1222345 abc 11111222345 de xy 712111345446 is valid or even 49833376543"; if(preg_match_all('~\d{7,}~', $str, $out) > 0) { $res = array_filter($out[0], function($v) { return count(array_unique(str_split($v))) >= 7; }); } print_r($res); ?>
Output for git.master, git.master_jit, rfc.property-hooks
<? $str = "1234567 foo bar 122345678 baz 1222345 abc 11111222345 de xy 712111345446 is valid or even 49833376543"; if(preg_match_all('~\d{7,}~', $str, $out) > 0) { $res = array_filter($out[0], function($v) { return count(array_unique(str_split($v))) >= 7; }); } print_r($res); ?>

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