3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Conectando, seleccionando la base de datos $link = _connect('mysql3.000webhost.com', 'a7163469_intern', '11Liburu')or die('No se pudo conectar: ' . _error()); echo 'Connected successfully'; _select_db('a7163469_txanda') or die('No se pudo seleccionar la base de datos'); // Realizar una consulta $query = 'SELECT * FROM Txanda'; $result = _query($query) or die('Consulta fallida: ' . _error()); // Imprimir los resultados en HTML echo "<table>\n"; while ($line = _fetch_array($result, _ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n"; // Liberar resultados _free_result($result); // Cerrar la conexión _close($link);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function _connect() in /in/mJQa6:3 Stack trace: #0 {main} thrown in /in/mJQa6 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:
44.29 ms | 401 KiB | 8 Q