3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function titoloSito(){ return "Balducci"; } function titoloPagina(){ return "Pagina"; } function testata($stampa = true){ $var = '<title>'.titoloPagina()." - ".titoloSito().'</title>'; if(stampa) echo $var; else return $var; } $var = str_replace("title", "h1", testata(false)); ?>
based on FEZEM
Output for 7.2.0
Warning: Use of undefined constant stampa - assumed 'stampa' (this will throw an Error in a future version of PHP) in /in/1lqTb on line 10 <title>Pagina - Balducci</title>
Output for 5.3.22 - 7.1.10
Notice: Use of undefined constant stampa - assumed 'stampa' in /in/1lqTb on line 10 <title>Pagina - Balducci</title>