3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<form method='Post'> <input type='submit' name='pdf' value='PDF'> <input type='submit' name='excel' value='excel'> </form> <?php if (isset($_POST['pdf'])) { echo "pdf"; } if (isset($_POST['excel'])) { echo "excel"; }
Output for 4.3.0 - 7.1.0
<form method='Post'> <input type='submit' name='pdf' value='PDF'> <input type='submit' name='excel' value='excel'> </form>