3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(method_exists(mysqli, "mysqli")); // Evaluates to true var_dump(method_exists(mysqli, "__construct")); // Evaluates to false
based on kHkoL
Output for 7.2.0
Warning: Use of undefined constant mysqli - assumed 'mysqli' (this will throw an Error in a future version of PHP) in /in/0IuNe on line 2 bool(false) Warning: Use of undefined constant mysqli - assumed 'mysqli' (this will throw an Error in a future version of PHP) in /in/0IuNe on line 3 bool(false)
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.10
Notice: Use of undefined constant mysqli - assumed 'mysqli' in /in/0IuNe on line 2 bool(false) Notice: Use of undefined constant mysqli - assumed 'mysqli' in /in/0IuNe on line 3 bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/0IuNe on line 3
Process exited with code 255.