3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s=1; function password_md5_mess($pass) { var $s; $split=(str_split(md5($pass),16)); md5($split[1]); //calculate MD5 on 2 (16 chars)) part of password return $s; } $password=password_md5_mess('12345'); echo $password; ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/2ufnQ on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VAR in /in/2ufnQ on line 4
Process exited with code 255.