3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "abcdefghijklmn"; $print = strrev($str); $st=""; $size = strlen($print); for($i = 0;$i<$size;$i=$i+2) { if($i+1 < $size ) $st .= substr($print,$i,$i); }echo $st;
Output for 4.3.0 - 7.2.0
lkjihghgfedcfedcbadcbaba