3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ( function_exists( "mysql_connect" ) ) { echo nl2br("\n").mysql_get_server_info(); echo nl2br("\n").mysql_get_host_info(); echo nl2br("\n").mysql_get_client_info(); }
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Output for hhvm-3.10.0 - 3.12.0
Warning: supplied argument is not a valid MySQL-Link resource in /in/aeHav on line 4 <br /> Warning: supplied argument is not a valid MySQL-Link resource in /in/aeHav on line 5 <br /> <br /> 5.6.24
Output for 4.3.2 - 4.4.9
Warning: mysql_get_server_info(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/aeHav on line 4 Warning: mysql_get_server_info(): A link to the server could not be established in /in/aeHav on line 4 <br /> Warning: mysql_get_host_info(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/aeHav on line 5 Warning: mysql_get_host_info(): A link to the server could not be established in /in/aeHav on line 5 <br /> <br /> 3.23.49
Output for 4.3.0 - 4.3.1
Warning: mysql_get_server_info() [http://www.php.net/function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/aeHav on line 4 Warning: mysql_get_server_info() [http://www.php.net/function.mysql-get-server-info]: A link to the server could not be established in /in/aeHav on line 4 <br /> Warning: mysql_get_host_info() [http://www.php.net/function.mysql-get-host-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/aeHav on line 5 Warning: mysql_get_host_info() [http://www.php.net/function.mysql-get-host-info]: A link to the server could not be established in /in/aeHav on line 5 <br /> <br /> 3.23.49