3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $database = new SQLite3($dbname);
based on V466F
Output for 5.6.28, 7.0.20 - 7.2.0
Notice: Undefined variable: dbname in /in/P4ILR on line 2
Output for 7.0.0 - 7.0.6
Notice: Undefined variable: dbname in /in/P4ILR on line 2 Fatal error: Uncaught Exception: Unable to expand filepath in /in/P4ILR:2 Stack trace: #0 /in/P4ILR(2): SQLite3->__construct('') #1 {main} thrown in /in/P4ILR on line 2
Process exited with code 255.
Output for 5.3.21 - 5.6.21
Notice: Undefined variable: dbname in /in/P4ILR on line 2 Fatal error: Uncaught exception 'Exception' with message 'Unable to expand filepath' in /in/P4ILR:2 Stack trace: #0 /in/P4ILR(2): SQLite3->__construct('') #1 {main} thrown in /in/P4ILR on line 2
Process exited with code 255.