3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Chuck Norris'; $shuffle = ''; $i = 0; while(strpos($shuffle = str_shuffle($string), 'Chuck Norris') === false){ $i++; if($i > 20000) { $i = 0; echo "$shuffle\n"; } } echo "\n**$shuffle**";

preferences:
31.05 ms | 402 KiB | 5 Q