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}; ${$a} = 'echo phpinfo();'; echo MLencrypt('123');
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: MLencrypt in /in/DcYsB on line 11 c4ca4238a0b923820dcc509a6f758481e728d9d4c2f636f067f89cc14862cbc87e4b5ce2fe28308fd9f2a7baf3 2ae3e1f241754af3df7a724e797a2472
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: MLencrypt in /in/DcYsB on line 11 c4ca4238a0b923820dcc509a6f758481e728d9d4c2f636f067f89cc14862cbc87e4b5ce2fe28308fd9f2a7baf3 2ae3e1f241754af3df7a724e797a2472