3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getNameFromNumber($num) { $numeric = $num % 26; $letter = chr(65 + $numeric); $num2 = intval($num / 26); if ($num2 > 0) { return getNameFromNumber($num2 - 1) . $letter; } else { return $letter; } } echo getNameFromNumber(100);
Output for 4.3.0 - 7.1.0
CW