3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vbulletin->db->query_write(" INSERT INTO " . TABLE_PREFIX . "usernote (message, dateline, userid, posterid, title, allowsmilies) VALUES ('" . $db->escape_string($usernote_message) . "', " . TIMENOW . ", " . ($this->fetch_field('userid')) . ", " . $poster . ", '".$vbphrase['ncun_usernote_title']."', 1) ");
based on X55CA
Output for 7.2.0 - 7.3.0beta1
Notice: Undefined variable: vbulletin in /in/QTmXc on line 2 Notice: Trying to get property 'db' of non-object in /in/QTmXc on line 2 Fatal error: Uncaught Error: Call to a member function query_write() on null in /in/QTmXc:2 Stack trace: #0 {main} thrown in /in/QTmXc on line 2
Process exited with code 255.
Output for 7.0.0 - 7.1.20
Notice: Undefined variable: vbulletin in /in/QTmXc on line 2 Notice: Trying to get property of non-object in /in/QTmXc on line 2 Fatal error: Uncaught Error: Call to a member function query_write() on null in /in/QTmXc:2 Stack trace: #0 {main} thrown in /in/QTmXc on line 2
Process exited with code 255.
Output for hhvm-3.15.4
Notice: Undefined variable: vbulletin in /in/QTmXc on line 5 Notice: Cannot access property on non-object in /in/QTmXc on line 5 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function query_write() on a non-object (null)' in /in/QTmXc:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Notice: Undefined variable: vbulletin in /in/QTmXc on line 2 Notice: Trying to get property of non-object in /in/QTmXc on line 2 Fatal error: Call to a member function query_write() on null in /in/QTmXc on line 2
Process exited with code 255.