3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php send_notification($params) { $message = stripslashes(str_replace('\n', '', $params['message'])); var_dump("INSERT INTO userNot(userid, message, date) VALUES('".mysql_real_escape_string($params['userid'])."', '".mysql_real_escape_string($message)."', '".mysql_real_escape_string(date('Y-m-d H:i:s'))."')"); } $nick = '?A users username?'; $myid = '1234567890'; $msg = 'Whatsup?'; $params = array( 'message' => $nick.' has sent you a new message: '.$msg, 'userid' => $myid ); send_notification($params);
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '{' in /in/cZQh4 on line 2
Process exited with code 255.