3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $results = 'a string'; echo mysql_num_rows(results);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mysql_num_rows() in /in/nl5Yt:5 Stack trace: #0 {main} thrown in /in/nl5Yt on line 5
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant results - assumed 'results' in /in/nl5Yt on line 5 Warning: mysql_num_rows() expects parameter 1 to be resource, string given in /in/nl5Yt on line 5
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function mysql_num_rows() in /in/nl5Yt on line 5
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant results - assumed 'results' in /in/nl5Yt on line 5 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /in/nl5Yt on line 5