3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $action=$_REQUEST['action']; if ($action=="") /* display the contact form */ { ?> <h2>&#352;iuo metu sapnininkas spar&#269;iai pildomas, tod&#279;l kai kurios sapn&#371; reik&#353;m&#279;s n&#279;ra pateiktos. Pra&#353;ome paspausti mygtuk&#261; <span style="color: #CC0000">"Si&#371;sti"</span>, kad 24-i&#371; valand&#371; laikotarpyje gal&#279;tume suvesti j&#363;s&#371; ie&#353;komo sapno reik&#353;m&#281;.</h2> <form action="" method="POST" enctype="multipart/form-data"> <input type="hidden" name="action" value="submit"> <h3>J&#363;s&#371; ie&#353;komas sapno simbolis:</h3> <input name="message" type="text" value="<?php the_search_query(); ?>" size="15"/><br> &#302;veskite savo el. pa&#353;to adres&#261;, jeigu norite b&#363;ti informuotas t&#261; pa&#269;i&#261; akimirk&#261;, kai tik bus paskelbta ie&#353;koma sapno reik&#353;m&#279;. (NEPRIVALOMA)<br> <input name="email" type="text" value="" size="20"/><br> <input type="submit" value="Si&#371;sti"/> </form> <?php } else /* send the submitted data */ { $email=$_REQUEST['email']; $message=$_REQUEST['message']; if ($message=="") { echo "Pra&#353;ome &#303;vesti ie&#353;kom&#261; sapno simbol&#303; <a href=\"\">Gr&#303;&#382;ti</a>"; } else{ $subject="Nauja sapno simbolio paie&#353;ka" . $email; mail("esapnininkas@gmail.com", $subject, $message); echo "J&#363;s&#371; u&#382;klausa i&#353;si&#371;sta. Sapno simbolio reik&#353;m&#279; bus publikuota ne v&#279;liau kaip per 24 valandas. Jeigu nurod&#279;te savo el. pa&#353;to adres&#261;, apie j&#363;s&#371; ie&#353;kom&#261; sapno simbolio reik&#353;m&#279;s atsiradim&#261; prane&#353;ime asmeni&#353;kai."; } } ?>
Output for 7.0.0 - 7.2.0
Notice: Undefined index: action in /in/eSBXg on line 2 <h2>&#352;iuo metu sapnininkas spar&#269;iai pildomas, tod&#279;l kai kurios sapn&#371; reik&#353;m&#279;s n&#279;ra pateiktos. Pra&#353;ome paspausti mygtuk&#261; <span style="color: #CC0000">"Si&#371;sti"</span>, kad 24-i&#371; valand&#371; laikotarpyje gal&#279;tume suvesti j&#363;s&#371; ie&#353;komo sapno reik&#353;m&#281;.</h2> <form action="" method="POST" enctype="multipart/form-data"> <input type="hidden" name="action" value="submit"> <h3>J&#363;s&#371; ie&#353;komas sapno simbolis:</h3> <input name="message" type="text" value=" Fatal error: Uncaught Error: Call to undefined function the_search_query() in /in/eSBXg:12 Stack trace: #0 {main} thrown in /in/eSBXg on line 12
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Notice: Undefined index: action in /in/eSBXg on line 2 <h2>&#352;iuo metu sapnininkas spar&#269;iai pildomas, tod&#279;l kai kurios sapn&#371; reik&#353;m&#279;s n&#279;ra pateiktos. Pra&#353;ome paspausti mygtuk&#261; <span style="color: #CC0000">"Si&#371;sti"</span>, kad 24-i&#371; valand&#371; laikotarpyje gal&#279;tume suvesti j&#363;s&#371; ie&#353;komo sapno reik&#353;m&#281;.</h2> <form action="" method="POST" enctype="multipart/form-data"> <input type="hidden" name="action" value="submit"> <h3>J&#363;s&#371; ie&#353;komas sapno simbolis:</h3> <input name="message" type="text" value=" Fatal error: Call to undefined function the_search_query() in /in/eSBXg on line 12
Process exited with code 255.