3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:'); $stmt = $db->prepare('SELECT * FROM test WHERE test = ?'); $res = $stmt->bindfParam(1, '11111a', SQLITE3_INTEGER); var_dump($res); var_dump($stmt);
Output for 8.3.0 - 8.3.9
Warning: SQLite3::prepare(): Unable to prepare statement: no such table: test in /in/eh2cv on line 4 Fatal error: Uncaught Error: Call to a member function bindfParam() on false in /in/eh2cv:5 Stack trace: #0 {main} thrown in /in/eh2cv on line 5
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.21
Warning: SQLite3::prepare(): Unable to prepare statement: 1, no such table: test in /in/eh2cv on line 4 Fatal error: Uncaught Error: Call to a member function bindfParam() on bool in /in/eh2cv:5 Stack trace: #0 {main} thrown in /in/eh2cv on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33
Warning: SQLite3::prepare(): Unable to prepare statement: 1, no such table: test in /in/eh2cv on line 4 Fatal error: Uncaught Error: Call to a member function bindfParam() on boolean in /in/eh2cv:5 Stack trace: #0 {main} thrown in /in/eh2cv on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Warning: SQLite3::prepare(): Unable to prepare statement: 1, no such table: test in /in/eh2cv on line 4 Fatal error: Call to a member function bindfParam() on boolean in /in/eh2cv on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
Warning: SQLite3::prepare(): Unable to prepare statement: 1, no such table: test in /in/eh2cv on line 4 Fatal error: Call to a member function bindfParam() on a non-object in /in/eh2cv on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Fatal error: Class 'SQLite3' not found in /in/eh2cv on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Fatal error: Cannot instantiate non-existent class: sqlite3 in /in/eh2cv on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: sqlite3 in /in/eh2cv on line 3

preferences:
289.12 ms | 402 KiB | 402 Q