3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (isset($_POST['tipo'])){ var_dump($_POST['tipo']); } ?> <html> <body> <form action="" method="post"> <input type="checkbox" name="tipo[]" value="5" /> <input type="checkbox" name="tipo[]" value="3" /> <input type="checkbox" name="tipo[]" value="4" /> <input type="checkbox" name="tipo[]" value="5" /> <input type="submit" > </form> </body> </html>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<html> <body> <form action="" method="post"> <input type="checkbox" name="tipo[]" value="5" /> <input type="checkbox" name="tipo[]" value="3" /> <input type="checkbox" name="tipo[]" value="4" /> <input type="checkbox" name="tipo[]" value="5" /> <input type="submit" > </form> </body> </html>