3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $resultStore = false; try { $stmtSaveQuizResult->execute(['user' => $userId, 'userId' => $userId, 'userid' => $userId, 'user_id' => $userId]); $resultStore = true; } catch (PDOException $e) { } return $resultStore;
based on Uc6GR
Output for 7.0.5 - 7.2.11
Notice: Undefined variable: stmtSaveQuizResult in /in/c5Tkc on line 5 Fatal error: Uncaught Error: Call to a member function execute() on null in /in/c5Tkc:5 Stack trace: #0 {main} thrown in /in/c5Tkc on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: stmtSaveQuizResult in /in/c5Tkc on line 5 Fatal error: Uncaught Error: Call to a member function execute() on unknown in /in/c5Tkc:5 Stack trace: #0 {main} thrown in /in/c5Tkc on line 5
Process exited with code 255.
Output for hhvm-3.22.0
Notice: Undefined variable: stmtSaveQuizResult in /in/c5Tkc on line -1 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function execute() on a non-object (null)' in /in/c5Tkc:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1 - 3.21.3
Notice: Undefined variable: stmtSaveQuizResult in /in/c5Tkc on line 5 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function execute() on a non-object (null)' in /in/c5Tkc:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.38
Notice: Undefined variable: stmtSaveQuizResult in /in/c5Tkc on line 5 Fatal error: Call to a member function execute() on null in /in/c5Tkc on line 5
Process exited with code 255.
Output for 5.4.0 - 5.5.38
Notice: Undefined variable: stmtSaveQuizResult in /in/c5Tkc on line 5 Fatal error: Call to a member function execute() on a non-object in /in/c5Tkc on line 5
Process exited with code 255.
Output for 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/c5Tkc on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/c5Tkc on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/c5Tkc on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/c5Tkc on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/c5Tkc on line 4
Process exited with code 255.