3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $NAME = $_POST['NAME']; if(empty($NAME)) { echo "<h2>text</h2>\n" ; die ("text."); } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="text"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css.css"> <script src="js.js"></script> <link rel="icon" href="favicon.png"> <title>text</title> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <div class="container"> <div class="starter-template"> <h1> text <?php echo $NAME?></h1> <br> <div class="progress"> <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%"> </div> </div> </div> </div> <?php exec("/var/www/script.sh $NAME"); ?>
based on sOmgv
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: NAME in /in/Rp3ON on line 2 <h2>text</h2> text.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.17
Notice: Undefined index: NAME in /in/Rp3ON on line 2 <h2>text</h2> text.