3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $query = "select emplid from statistics"; $result = mysql_query($query, $pds) or trigger_error('Query failed: ' . mysql_error($pds), E_USER_ERROR); while($result_row = mysql_fetch_assoc($result) ) { $emplid_val=$result_row['emplid']; $sql_text_tuition= "sqlplus -s 'gradsch_query/g18a4s3h@(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = CS900RPT.et.ncsu.edu)(PORT = 16210)))(CONNECT_DATA =(SERVICE_NAME = CS900RPT.et.ncsu.edu)))' @/etc/oracle/gsoars_residency_by_type $emplid_val"; $tuition_output1=""; $sql_line_tuition = exec($sql_text_tuition,$tuition_output1); }
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/oBJoD:3 Stack trace: #0 {main} thrown in /in/oBJoD on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: pds in /in/oBJoD on line 3 Warning: supplied argument is not a valid MySQL-Link resource in /in/oBJoD on line 3 Notice: Undefined variable: pds in /in/oBJoD on line 3 Warning: supplied argument is not a valid MySQL-Link resource in /in/oBJoD on line 3 Fatal error: Query failed: in /in/oBJoD on line 3
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function mysql_query() in /in/oBJoD on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: Undefined variable: pds in /in/oBJoD on line 3 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /in/oBJoD on line 3 Notice: Undefined variable: pds in /in/oBJoD on line 3 Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /in/oBJoD on line 3 Fatal error: Query failed: in /in/oBJoD on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: pds in /in/oBJoD on line 3 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /in/oBJoD on line 3 Notice: Undefined variable: pds in /in/oBJoD on line 3 Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /in/oBJoD on line 3 Fatal error: Query failed: in /in/oBJoD on line 3