3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function editEntry($entry) { echo $entry; } function deleteEntry($entry) { echo $entry; } /*Edit on $_POST*/ if(isset($_POST["edit"])) { $entry = $_POST["edit"]; editEntry($entry); } /*Delete on $_POST*/ else if(isset($_POST["delete"])) { $entry = $_POST["delete"]; deleteEntry($entry); } editEntry("3");
Output for 4.3.0 - 7.1.0
3