3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $o = ""; $allowed_chars = range('A-Za-z0-9'); $string = "hzgtfrzutrdetzttedcuztivcretfuzrtzt"; for ($i = 0; $i < strlen($string); $i++) { $ch = $string[$i]; if (isset($allowed_chars[ord($ch)])) { $o.=$allowed_chars[ord($ch)]; } else if (ord($ch) == 27) { $i++; $ch = $string[$i]; if (isset($escape_char[ord($ch)])) { $o.=$escape_char[ord($ch)]; } } } echo $o;
Output for 5.0.0 - 7.1.0
Warning: range() expects at least 2 parameters, 1 given in /in/ECA6X on line 4
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/ECA6X on line 4