3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $host = "1.2.3.4"; $usr = "root"; $pw = ""; $db = "x"; try { $mysqli = new mysqli($host,$usr,$pw,$db); $connected = true; } catch (Exception $e) { echo $e->getMessage(); } echo "x";
based on iffYh
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'mysqli' not found in /in/GNe9f:7 Stack trace: #0 {main} thrown in /in/GNe9f on line 7
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Class 'mysqli' not found in /in/GNe9f on line 7
Process exited with code 255.