3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getColumnLetter($index) { $letters = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'U', 'V', 'W', 'X', 'Y', 'Z'); $result = ""; while ($index >= count($letters)) { $place = $index * count($letters); while ($index >= $place) { echo $index; } } } echo getColumnLetter(2200);
based on VUUDT
Output for 5.3.17 - 7.2.0

Process exited with code 137.