3v4l.org

run code in 300+ PHP versions simultaneously
<?php $messages = ""; $sqli = mysqli_query($dbc,"SELECT * FROM fox ORDER BY data DESC LIMIT 20"); $i = 0; $productCount = mysqli_num_rows($sqli); if ($productCount > 0) { while($row = mysqli_fetch_array($sqli)){ $id = $row["id"]; $msg_1 = $row['msg_1']; $msg_email = $row['msg_email']; $assunto = $row['assunto']; $mensagem = $row['mensagem']; $data = $row['data']; $size = $row['size']; if (!$size){ echo ' X';} else {echo "<img src='../style/check.jpg' width='20' height='20' />";} if ($i % 2 == 0) { $messages .= ' <tr bgcolor="#f0eded"> <td align="center">' . $msg_1 .'</td> <td align="center">' . $msg_email .'</td> <td align="center">' . $assunto .'</td> <td align="center">' . $mensagem . '</td> <td align="center">' . $data .'</td> <td align="center">' . $size .'</td> <td align="center"><a href="index.php?id=' . $id . '">Respond</a>&nbsp;<b>/</b>&nbsp;<a href="#">Eliminate</a></td> </tr>'; } else { $messages .= ' <tr background-color= "#ffffff"> <td align="center">' . $msg_1 .'</td> <td align="center">' . $msg_email .'</td> <td align="center">' . $assunto .'</td> <td align="center">' . $mensagem . '</td> <td align="center">' . $data .'</td> <td align="center">' . $size .'</td> <td align="center"><a href="index.php?id=' . $id . '"> Respond</a>&nbsp;<b>/</b>&nbsp;<a href="#">Eliminate </a></td> </tr>'; } $i++; } }else{ $messages = "<b>No msg in DB.</b>"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mysqli_query() in /in/RQGQQ:3 Stack trace: #0 {main} thrown in /in/RQGQQ on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.44 ms | 401 KiB | 8 Q