3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!(isset($_GET['azienda'], $_GET['indirizzo'], $_GET['citta'], $_GET['telefono'], $_GET['descrizione']))) echo 'errore manca una o più variabili nella query string'; elseif ($_GET['azienda'] && $_GET['indirizzo']) { $fp = fopen($_GET['azienda'] . 'html', 'w+') or die('errore nell\'apertura del file'); fwrite($fp, 'azienda: ' . $_GET['azienda'] . '<br> indirizzo: ' . $_GET['indirizzo'] . '<br> citta: ' . $_GET['citta'] . '<br> telefono: ' . $_GET['telefono'] . '<br> descrizione: ' . $_GET['descrizione'] ) or die('errore nella scrittura del file'); fclose($fp); echo 'pagina ' . $_GET['azienda'] . 'html' . ' inserita correttamente'; } else { echo 'errore nel form, probabilmente non compilato azienda e/o indirizzo'; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
errore manca una o più variabili nella query string

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:
59.34 ms | 401 KiB | 8 Q