3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $query = "SELECT naam, datum,sum(duuropdracht) FROM `ploegopdrachten` WHERE datum = '$timewo' GROUP BY naam"; if ($result = mysqli_query($connect, $query)) { while ($get = mysqli_fetch_assoc($result)) { echo "<tr><td>", $get['naam'], "</td>"; echo "<td>", $get['datum'], "</td>"; echo "<td>", $get['sum(duuropdracht)'], " uur </td>"; $query1 = "SELECT urenpdag FROM `ploegen` where naam = '$get[naam]'"; if($query2 = mysqli_query($connect, $query1)){ while($get2 = mysqli_fetch_assoc($query2)){ echo "<td>", $get2['urenpdag'], "</td></tr>"; } } } } ?>
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Fatal error: Uncaught Error: Call to undefined function mysqli_query() in /in/9cv8C:3 Stack trace: #0 {main} thrown in /in/9cv8C on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Notice: Undefined variable: connect in /in/9cv8C on line 3 Fatal error: Uncaught TypeError: Argument 1 passed to mysqli_query() must be an instance of mysqli, null given in /in/9cv8C:3 Stack trace: #0 /in/9cv8C(3): mysqli_query() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Notice: Undefined variable: connect in /in/9cv8C on line 3 Catchable fatal error: Argument 1 passed to mysqli_query() must be an instance of mysqli, null given in /in/9cv8C on line 3
Process exited with code 255.
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Fatal error: Call to undefined function mysqli_query() in /in/9cv8C on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Fatal error: Call to undefined function mysqli_query() in /in/9cv8C on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Fatal error: Call to undefined function: mysqli_query() in /in/9cv8C on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Fatal error: Call to undefined function: mysqli_query() in /in/9cv8C on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: timewo in /in/9cv8C on line 2 Fatal error: Call to undefined function: mysqli_query() in /in/9cv8C on line 3