3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(isset($_POST['submit'])) { $sale_price = $_POST['sale_price']; // posted value $title_insurance = ($sale_price * 0.00575) + 200; ?> <script type="text/javascript"> document.getElementById("title_insurance ").value='<?php echo $title_insurance ; ?>'; </script> <?php } ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input name="sale_price" type="text" id="sale_price" size="15"> <input name="title_insurance" type="text" id="title_insurance" size="15" value="<?php echo $title_insurance; ?>" /> <input name="button" type="submit" class="bordered" id="button" value="Calculate" /> </form>
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<form action="/in/FdV26" method="post" enctype="multipart/form-data"> <input name="sale_price" type="text" id="sale_price" size="15"> <input name="title_insurance" type="text" id="title_insurance" size="15" value=" Notice: Undefined variable: title_insurance in /in/FdV26 on line 17 " /> <input name="button" type="submit" class="bordered" id="button" value="Calculate" /> </form>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.3 - 5.3.27, 5.4.0 - 5.4.17
<form action="/in/GcC3g" method="post" enctype="multipart/form-data"> <input name="sale_price" type="text" id="sale_price" size="15"> <input name="title_insurance" type="text" id="title_insurance" size="15" value=" Notice: Undefined variable: title_insurance in /in/GcC3g on line 17 " /> <input name="button" type="submit" class="bordered" id="button" value="Calculate" /> </form>
Output for 5.0.4 - 5.2.2
<form action="" method="post" enctype="multipart/form-data"> <input name="sale_price" type="text" id="sale_price" size="15"> <input name="title_insurance" type="text" id="title_insurance" size="15" value=" Notice: Undefined variable: title_insurance in /in/GcC3g on line 17 " /> <input name="button" type="submit" class="bordered" id="button" value="Calculate" /> </form>
Output for 4.3.1 - 5.0.3
<form action="" method="post" enctype="multipart/form-data"> <input name="sale_price" type="text" id="sale_price" size="15"> <input name="title_insurance" type="text" id="title_insurance" size="15" value=" Notice: Undefined variable: title_insurance in /in/GcC3g on line 17 " /> <input name="button" type="submit" class="bordered" id="button" value="Calculate" /> </form>
Output for 4.3.0
<form action="" method="post" enctype="multipart/form-data"> <input name="sale_price" type="text" id="sale_price" size="15"> <input name="title_insurance" type="text" id="title_insurance" size="15" value=" Notice: Undefined variable: title_insurance in /in/FdV26 on line 17 " /> <input name="button" type="submit" class="bordered" id="button" value="Calculate" /> </form>