3v4l.org

run code in 500+ PHP versions simultaneously
<?php function getIn($i) { $str = 'abcdefghijklmnopqrstuvwxyz'; $r = (int) floor($i / 26) ; $c = $i % 26; return ($r) < 1 ? $str[$c] : $str[$r-1] . $str[$c]; } echo getIn(800);

preferences:
86.68 ms | 1252 KiB | 5 Q