3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1 = new mysqli_driver(); $d2 = new mysqli_driver(); echo $d1->report_mode.PHP_EOL; echo $d2->report_mode.PHP_EOL; $d1->report_mode = MYSQLI_REPORT_ALL; echo $d1->report_mode.PHP_EOL; echo $d2->report_mode.PHP_EOL; var_dump($d1); var_dump($d2);
Output for 7.0.0 - 7.3.0
Fatal error: Uncaught Error: Class 'mysqli_driver' not found in /in/330o6:2 Stack trace: #0 {main} thrown in /in/330o6 on line 2
Process exited with code 255.
Output for hhvm-3.10.1 - 3.17.3
0 0 255 0 object(mysqli_driver)#1 (2) { ["__reconnect":"mysqli_driver":private]=> bool(false) ["__report_mode":"mysqli_driver":private]=> int(255) } object(mysqli_driver)#2 (2) { ["__reconnect":"mysqli_driver":private]=> bool(false) ["__report_mode":"mysqli_driver":private]=> int(0) }
Output for 5.0.0 - 5.6.38
Fatal error: Class 'mysqli_driver' not found in /in/330o6 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: mysqli_driver in /in/330o6 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: mysqli_driver in /in/330o6 on line 2