3v4l.org

run code in 300+ PHP versions simultaneously
<?php dl("sqlite.so"); $db = new SqliteDatabase("foo");
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/RNXI5 on line 2 Fatal error: Uncaught Error: Class "SqliteDatabase" not found in /in/RNXI5:3 Stack trace: #0 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 8.0.13
Warning: dl(): Unable to load dynamic library 'sqlite.so' (tried: /usr/lib/php/8.0.13/modules/sqlite.so (/usr/lib/php/8.0.13/modules/sqlite.so: cannot open shared object file: No such file or directory), /usr/lib/php/8.0.13/modules/sqlite.so.so (/usr/lib/php/8.0.13/modules/sqlite.so.so: cannot open shared object file: No such file or directory)) in /in/RNXI5 on line 2 Fatal error: Uncaught Error: Class "SqliteDatabase" not found in /in/RNXI5:3 Stack trace: #0 {main} thrown in /in/RNXI5 on line 3
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, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/RNXI5 on line 2 Fatal error: Uncaught Error: Class 'SqliteDatabase' not found in /in/RNXI5:3 Stack trace: #0 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 7.4.26
Warning: dl(): Unable to load dynamic library 'sqlite.so' (tried: /usr/lib/php/7.4.26/modules/sqlite.so (/usr/lib/php/7.4.26/modules/sqlite.so: cannot open shared object file: No such file or directory), /usr/lib/php/7.4.26/modules/sqlite.so.so (/usr/lib/php/7.4.26/modules/sqlite.so.so: cannot open shared object file: No such file or directory)) in /in/RNXI5 on line 2 Fatal error: Uncaught Error: Class 'SqliteDatabase' not found in /in/RNXI5:3 Stack trace: #0 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 7.3.33
Warning: dl(): Unable to load dynamic library 'sqlite.so' (tried: /usr/lib/php/7.3.33/modules/sqlite.so (/usr/lib/php/7.3.33/modules/sqlite.so: cannot open shared object file: No such file or directory), /usr/lib/php/7.3.33/modules/sqlite.so.so (/usr/lib/php/7.3.33/modules/sqlite.so.so: cannot open shared object file: No such file or directory)) in /in/RNXI5 on line 2 Fatal error: Uncaught Error: Class 'SqliteDatabase' not found in /in/RNXI5:3 Stack trace: #0 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 7.3.32
Warning: dl(): Unable to load dynamic library 'sqlite.so' (tried: /usr/lib/php/7.3.32/modules/sqlite.so (/usr/lib/php/7.3.32/modules/sqlite.so: cannot open shared object file: No such file or directory), /usr/lib/php/7.3.32/modules/sqlite.so.so (/usr/lib/php/7.3.32/modules/sqlite.so.so: cannot open shared object file: No such file or directory)) in /in/RNXI5 on line 2 Fatal error: Uncaught Error: Class 'SqliteDatabase' not found in /in/RNXI5:3 Stack trace: #0 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.35, 5.6.0 - 5.6.21
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/RNXI5 on line 2 Fatal error: Class 'SqliteDatabase' not found in /in/RNXI5 on line 3
Process exited with code 255.
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/RNXI5 on line 2 Fatal error: Uncaught exception 'SQLiteException' with message 'SQLiteDatabase::__construct(): unable to open database: /foo' in /in/RNXI5:3 Stack trace: #0 /in/RNXI5(3): SQLiteDatabase->__construct('foo') #1 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 5.0.3 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/RNXI5 on line 2 Fatal error: Uncaught exception 'SQLiteException' with message 'SQLiteDatabase::__construct(): unable to open database: /in/foo' in /in/RNXI5:3 Stack trace: #0 /in/RNXI5(3): SQLiteDatabase->__construct('foo') #1 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/RNXI5 on line 2 Fatal error: Uncaught exception 'SQLiteException' with message 'SQLiteDatabase::__construct(): unable to open database: /in/foo' in /in/RNXI5:3 Stack trace: #0 {main} thrown in /in/RNXI5 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Warning: dl(): Dynamically loaded extentions aren't enabled in /in/RNXI5 on line 2 Fatal error: Cannot instantiate non-existent class: sqlitedatabase in /in/RNXI5 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: dl() [http://www.php.net/function.dl]: Dynamically loaded extentions aren't enabled in /in/RNXI5 on line 2 Fatal error: Cannot instantiate non-existent class: sqlitedatabase in /in/RNXI5 on line 3

preferences:
317.93 ms | 402 KiB | 385 Q