3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(mysql_fetch_assoc(null)); var_dump(mysql_fetch_object(null));
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mysql_fetch_assoc() in /in/68Lic:3 Stack trace: #0 {main} thrown in /in/68Lic on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Catchable fatal error: Argument 1 passed to mysql_fetch_assoc() must be an instance of resource, null given in /in/68Lic on line 3
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function mysql_fetch_assoc() in /in/68Lic on line 3
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /in/68Lic on line 3 NULL Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /in/68Lic on line 4 NULL