3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function MLencrypt($pass){ $hash = ''; for($i=0;$i<strlen($pass);$i++) $hash .= substr(md5($pass[$i]),($i%15),30); echo $hash."\n"; return md5($hash); } $a = 'MLencrypt'; echo $a; //echo ${$a}; ${$a} = 'echo phpinfo();'; //echo MLencrypt('123');
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
MLencrypt
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/QGY4W on line 14
Process exited with code 255.