3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $sql = new mysqli('localhost','root','password','dbname'); ?>
based on p4Zb7
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'mysqli' not found in /in/4e3V2:2 Stack trace: #0 {main} thrown in /in/4e3V2 on line 2
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Fatal error: Class 'mysqli' not found in /in/4e3V2 on line 2
Process exited with code 255.
Output for 5.3.22 - 5.3.29
<? $sql = new mysqli('localhost','root','password','dbname'); ?>