3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (isset($_POST["submit"])): $hidden = $_POST["hidden"]; $x = $hidden + 1; else: $x = 0; endif; ?> <form method ="POST" action=""> <input type="submit" name="submit" value="Increase"/> <input type="hidden" name="hidden" value="<?php echo $x; ?>"/> </form> <?php echo "Kliknuto je <b>$x</b> puta"; ?>
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<form method ="POST" action=""> <input type="submit" name="submit" value="Increase"/> <input type="hidden" name="hidden" value="0"/> </form> Kliknuto je <b>0</b> puta