3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"; $s = explode("\t", $s); foreach($s as $o => $x) $s[$o] = trim($x); $s = array_reverse($s); foreach($s as $l) echo $l . "\n";
based on RdiRJ
Output for 5.3.20 - 7.2.0
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A