3v4l.org

run code in 300+ PHP versions simultaneously
<?php $database = new SQLite3($dbname);
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: Undefined variable $dbname in /in/P4ILR on line 2 Deprecated: SQLite3::__construct(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/P4ILR on line 2
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $dbname in /in/P4ILR on line 2
Output for 5.6.25 - 5.6.38, 7.0.10 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: dbname in /in/P4ILR on line 2
Output for 7.3.32 - 7.3.33
Output for 7.0.0 - 7.0.9
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.5.0 - 5.5.38, 5.6.0 - 5.6.24
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.

preferences:
244.46 ms | 402 KiB | 289 Q