3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try {new \SQLite3("ddas"); }catch(\Exception $e) { var_dump($e); }
based on IBfiI
Output for 7.3.0rc3
Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/ddas) is not within the allowed path(s): (/tmp:/in:/etc) in /in/T5QbN on line 3 object(Exception)#2 (7) { ["message":protected]=> string(36) "open_basedir prohibits opening /ddas" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/T5QbN" ["line":protected]=> int(3) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/T5QbN" ["line"]=> int(3) ["function"]=> string(11) "__construct" ["class"]=> string(7) "SQLite3" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(4) "ddas" } } } ["previous":"Exception":private]=> NULL }
Output for hhvm-3.15.4, 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
object(Exception)#2 (7) { ["message":protected]=> string(53) "Unable to open database: unable to open database file" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/T5QbN" ["line":protected]=> int(3) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/T5QbN" ["line"]=> int(3) ["function"]=> string(11) "__construct" ["class"]=> string(7) "SQLite3" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(4) "ddas" } } } ["previous":"Exception":private]=> NULL }
Output for 7.1.20, 7.2.6
Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/ddas) is not within the allowed path(s): (/tmp:/in) in /in/T5QbN on line 3 object(Exception)#2 (7) { ["message":protected]=> string(36) "open_basedir prohibits opening /ddas" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/T5QbN" ["line":protected]=> int(3) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/T5QbN" ["line"]=> int(3) ["function"]=> string(11) "__construct" ["class"]=> string(7) "SQLite3" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(4) "ddas" } } } ["previous":"Exception":private]=> NULL }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/ddas) is not within the allowed path(s): (/tmp/) in /in/T5QbN on line 3 object(Exception)#2 (7) { ["message":protected]=> string(36) "open_basedir prohibits opening /ddas" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/T5QbN" ["line":protected]=> int(3) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/T5QbN" ["line"]=> int(3) ["function"]=> string(11) "__construct" ["class"]=> string(7) "SQLite3" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(4) "ddas" } } } ["previous":"Exception":private]=> NULL }