3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (array_keys($_POST) == array('imie', 'nazwisko', 'hotel_id')) { echo 'ok'; } echo '<style type="text/css"> label {display:block} </style> <form method=POST"> <label>Imie</label> <input type="text" name="imie" /> <label>Nazwisko</label> <input type="text" name="nazwisko" /> <label>Wybierz hotel</label> <select name="hotel_id"> <option value="1">Warsaw Hotel Marriott</option> <option value="2">Hotel Prada</option> <option value="3">Hotel Miedzyzdroje</option> </select><br/> <input type="submit" value="Submit" /> </form>';
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<style type="text/css"> label {display:block} </style> <form method=POST"> <label>Imie</label> <input type="text" name="imie" /> <label>Nazwisko</label> <input type="text" name="nazwisko" /> <label>Wybierz hotel</label> <select name="hotel_id"> <option value="1">Warsaw Hotel Marriott</option> <option value="2">Hotel Prada</option> <option value="3">Hotel Miedzyzdroje</option> </select><br/> <input type="submit" value="Submit" /> </form>
Output for hhvm-3.10.0

Process exited with code 153.