3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo '<form action="number.php" method="POST">'; if (isset($_POST['casuale'])){ echo '<input type="hidden" name="casuale" value="'.$_POST['casuale'].'">'; } else{ $num=rand(1,100); echo '<input type="hidden" name="casuale" value="'.$num.'">'; } echo '<input type="text" name="ind_num" value="">'; echo '<input type="submit" value="ok" name="ok">'; echo '</form>'; if (isset($_POST["ind_num"])){ $tentativo=$_POST["ind_num"]; if($tentativo==$num) echo "Bravo cucciolissimoooooooooooooooooooooooooooooooooooooooo"; else{ if ($num>$tentativo) echo "ritenta, numero troppo piccolo"; else echo "ritenta, numero troppo grande"; } } ?>
based on WKbvv
Output for 5.2.6, 7.1.0
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="63"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.6.16, 7.0.14
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="53"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 7.0.6
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="21"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.17, 5.6.15, 7.0.5
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="95"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.1, 7.0.4
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="11"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.2, 5.4.14, 7.0.3
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="73"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 7.0.2
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="98"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.1.4, 5.3.21, 5.5.27, 5.5.32, 7.0.1
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="89"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.29, 5.4.45, 7.0.0
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="50"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.9, 5.4.30, 5.5.24, 5.6.18, 5.6.28
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="91"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.25, 5.5.28, 5.6.21
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="61"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.27, 5.5.25, 5.6.20
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="65"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.6.19
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="26"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.7, 5.2.17, 5.3.13, 5.4.43, 5.6.17
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="90"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.6.14
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="12"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.0, 5.6.13
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="67"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.1.6, 5.2.14, 5.5.33, 5.6.12
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="56"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.15, 5.6.10 - 5.6.11
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="16"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.11, 5.6.9
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="57"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.3, 5.5.26, 5.6.8
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="76"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.9, 5.4.11, 5.4.32, 5.5.35
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="30"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.5.34
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="23"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.18, 5.5.31
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="92"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.1, 5.4.3, 5.4.41, 5.5.30
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="83"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.36, 5.5.29
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="39"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.0.5, 5.4.26, 5.4.44
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="94"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.11, 4.4.7, 5.3.22, 5.4.42
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="71"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.5, 5.4.31, 5.4.40
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="62"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.2, 5.4.39
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="25"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.20, 5.4.38
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="6"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.37
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="8"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.0, 5.4.35
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="27"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.0, 5.2.10, 5.4.34
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="75"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.28
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="60"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.27
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="9"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.25
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="79"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.24
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="68"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.23
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="78"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.22
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="29"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.21
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="70"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.12, 5.4.19
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="18"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.5, 5.2.9, 5.4.8, 5.4.16
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="46"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.8, 5.1.5, 5.4.13
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="47"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.5, 5.4.12
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="42"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.0.0, 5.2.13, 5.3.12, 5.3.29, 5.4.10
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="77"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.9
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="55"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.4.7
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="97"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.1, 5.4.6
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="93"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.3, 5.4.4
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="15"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.8, 5.2.11, 5.4.1
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="1"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.3, 5.4.0
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="69"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.28
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="17"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.26
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="19"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.24
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="22"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.23
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="100"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.15, 5.3.20
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="24"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.19
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="7"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.18
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="66"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.1.3, 5.3.17
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="32"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.7, 5.3.14, 5.3.16
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="44"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.10
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="49"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.1.1, 5.2.5, 5.3.9
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="84"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.0, 5.3.8
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="10"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.6
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="36"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.3.5
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="72"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.2, 5.3.4
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="14"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.4.6, 5.1.2, 5.3.2
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="40"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.16, 5.3.1
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="88"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.0.4, 5.2.15
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="37"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.2.4
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="33"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.0.2, 5.1.0, 5.2.2
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="80"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.0.3
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="51"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 5.0.1
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="58"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.8, 4.4.4
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="34"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.10
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="64"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.7
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="38"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.6
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="41"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.4
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="82"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>
Output for 4.3.3
<form action="number.php" method="POST"><input type="hidden" name="casuale" value="96"><input type="text" name="ind_num" value=""><input type="submit" value="ok" name="ok"></form>