3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "YUc5c1lXMTFibVJ2"; $charset = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; for($j = 0; $j < 20; $j++) { //for($i = 0; $i < 63; $i++) //{ $out = ""; for($k = 0; $k < strlen($str); $k++) $out .= $charset[(strpos($charset, $str[$k]+31))%strlen($charset)]; echo sprintf("%s\n", $out); //} $charset = str_shuffle($charset); }

preferences:
39.6 ms | 402 KiB | 5 Q