3v4l.org

run code in 150+ 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+1); }echo $st;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
nlkjjihgfhgfedcbfedcbadcbaba