3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $chars = "0123456789ABCDEFGHIJKLMOPQRSTUVWabcdefghijklmnopqrstuvw"; $length = strlen($chars); $per = $index % $length; $subst = substr($chars, $per); $disp = ord($subst); echo ($index << $disp);
Output for 5.3.28 - 5.3.29, 5.4.20 - 7.1.0
Notice: Undefined variable: index in /in/3U9F1 on line 4 Notice: Undefined variable: index in /in/3U9F1 on line 7 0
Output for 5.0.4 - 5.3.27, 5.4.0 - 5.4.19
Notice: Undefined variable: index in /in/NbrgJ on line 4 Notice: Undefined variable: index in /in/NbrgJ on line 7 0
Output for 4.3.1 - 5.0.3
Notice: Undefined variable: index in /in/NbrgJ on line 4 Notice: Undefined variable: index in /in/NbrgJ on line 7 0
Output for 4.3.0
Notice: Undefined variable: index in /in/3U9F1 on line 4 Notice: Undefined variable: index in /in/3U9F1 on line 7 0