3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $con=mysql_connect ("localhst","root",""); if(!$con) die('could not correct'); $db=mysql_select_db("bsit 4g",$con); if(!$db) die('database not found'); php?>
Output for 7.0.0 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/SWf2t:2 Stack trace: #0 {main} thrown in /in/SWf2t on line 2
Process exited with code 255.
Output for hhvm-3.15.4
Warning: mysql_connect(): Unknown MySQL server host 'localhst' (111) in /in/SWf2t on line 2 could not correct
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function mysql_connect() in /in/SWf2t on line 2
Process exited with code 255.