3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "abcdefghijklmn"; $print = strrev($str); $st=""; for($i = 0;$i<$print.length;$i=$i+2) { $st .= substr($print,$i,$i+1); echo $st; }
Output for 4.3.0 - 7.1.0
Notice: Use of undefined constant length - assumed 'length' in /in/WZqqf on line 5