3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mysql = mysql_connect();
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/7uYTc:2 Stack trace: #0 {main} thrown in /in/7uYTc on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) in /in/7uYTc on line 2
Output for 5.2.3 - 5.6.28
Fatal error: Call to undefined function mysql_connect() in /in/7uYTc on line 2
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Fatal error</b>: Call to undefined function mysql_connect() in <b>/in/7uYTc</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.4.3 - 4.4.9
<br /> <b>Warning</b>: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in <b>/in/7uYTc</b> on line <b>2</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in <b>/in/7uYTc</b> on line <b>2</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: mysql_connect() [<a href='http://www.php.net/function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in <b>/in/7uYTc</b> on line <b>2</b><br />