3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php highlight_string('<?php $x = 100; $y = 100; for ($i=1; $i<=10; $i++) { $rand_x = rand(1,20); $actual_x = $x-$rand_x; $x = $actual_x; echo "X: Číslo: ". $rand_x ." bolo odčítané a ostalo ". $x ."<br />\n"; if ($x<=0) {exit("<p><b>X skončil !</b></p>");} $rand_y = rand(1,20); $actual_y = $y-$rand_y; $y = $actual_y; echo "Y: Číslo: ". $rand_y ." bolo odčítané a ostalo ". $y ."<br />\n"; if ($y<=0) {exit("<p><b>Y skončil !</b></p>");} if ($i=="10") {echo "<p><b>X: Ostalo: ".$x." Y: Ostalo: ".$y." </b></p>";} } ?>');?>
Output for 5.0.5 - 7.1.7
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php<br />$x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">100</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">100</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$i</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">10</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$i</span><span style="color: #007700">++)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$rand_x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">20</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$actual_x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$x</span><span style="color: #007700">-</span><span style="color: #0000BB">$rand_x</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$actual_x</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"X:&nbsp;Číslo:&nbsp;"</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$rand_x&nbsp;</span><span style="color: #007700">.</span><span style="color: #DD0000">"&nbsp;bolo&nbsp;odčítané&nbsp;a&nbsp;ostalo&nbsp;"</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$x&nbsp;</span><span style="color: #007700">.</span><span style="color: #DD0000">"&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">$x</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{exit(</span><span style="color: #DD0000">"&lt;p&gt;&lt;b&gt;X&nbsp;skončil&nbsp;!&lt;/b&gt;&lt;/p&gt;"</span><span style="color: #007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$rand_y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">20</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$actual_y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$y</span><span style="color: #007700">-</span><span style="color: #0000BB">$rand_y</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$actual_y</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Y:&nbsp;Číslo:&nbsp;"</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$rand_y&nbsp;</span><span style="color: #007700">.</span><span style="color: #DD0000">"&nbsp;bolo&nbsp;odčítané&nbsp;a&nbsp;ostalo&nbsp;"</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$y&nbsp;</span><span style="color: #007700">.</span><span style="color: #DD0000">"&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">$y</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{exit(</span><span style="color: #DD0000">"&lt;p&gt;&lt;b&gt;Y&nbsp;skončil&nbsp;!&lt;/b&gt;&lt;/p&gt;"</span><span style="color: #007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">$i</span><span style="color: #007700">==</span><span style="color: #DD0000">"10"</span><span style="color: #007700">)&nbsp;{echo&nbsp;</span><span style="color: #DD0000">"&lt;p&gt;&lt;b&gt;X:&nbsp;Ostalo:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">$x</span><span style="color: #007700">.</span><span style="color: #DD0000">"&nbsp;Y:&nbsp;Ostalo:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">$y</span><span style="color: #007700">.</span><span style="color: #DD0000">"&nbsp;&lt;/b&gt;&lt;/p&gt;"</span><span style="color: #007700">;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #0000BB">?&gt;</span> </span> </code>
Output for 5.0.0 - 5.0.4
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php<br />$x </span><span style="color: #007700">= </span><span style="color: #0000BB">100</span><span style="color: #007700">; </span><span style="color: #0000BB">$y </span><span style="color: #007700">= </span><span style="color: #0000BB">100</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;for (</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">; </span><span style="color: #0000BB">$i</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">10</span><span style="color: #007700">; </span><span style="color: #0000BB">$i</span><span style="color: #007700">++) {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$rand_x </span><span style="color: #007700">= </span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">20</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$actual_x </span><span style="color: #007700">= </span><span style="color: #0000BB">$x</span><span style="color: #007700">-</span><span style="color: #0000BB">$rand_x</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$x </span><span style="color: #007700">= </span><span style="color: #0000BB">$actual_x</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </span><span style="color: #DD0000">"X: Číslo: "</span><span style="color: #007700">. </span><span style="color: #0000BB">$rand_x </span><span style="color: #007700">.</span><span style="color: #DD0000">" bolo odčítané a ostalo "</span><span style="color: #007700">. </span><span style="color: #0000BB">$x </span><span style="color: #007700">.</span><span style="color: #DD0000">"&lt;br /&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (</span><span style="color: #0000BB">$x</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">0</span><span style="color: #007700">) {exit(</span><span style="color: #DD0000">"&lt;p&gt;&lt;b&gt;X skončil !&lt;/b&gt;&lt;/p&gt;"</span><span style="color: #007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$rand_y </span><span style="color: #007700">= </span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">20</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$actual_y </span><span style="color: #007700">= </span><span style="color: #0000BB">$y</span><span style="color: #007700">-</span><span style="color: #0000BB">$rand_y</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$y </span><span style="color: #007700">= </span><span style="color: #0000BB">$actual_y</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </span><span style="color: #DD0000">"Y: Číslo: "</span><span style="color: #007700">. </span><span style="color: #0000BB">$rand_y </span><span style="color: #007700">.</span><span style="color: #DD0000">" bolo odčítané a ostalo "</span><span style="color: #007700">. </span><span style="color: #0000BB">$y </span><span style="color: #007700">.</span><span style="color: #DD0000">"&lt;br /&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (</span><span style="color: #0000BB">$y</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">0</span><span style="color: #007700">) {exit(</span><span style="color: #DD0000">"&lt;p&gt;&lt;b&gt;Y skončil !&lt;/b&gt;&lt;/p&gt;"</span><span style="color: #007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (</span><span style="color: #0000BB">$i</span><span style="color: #007700">==</span><span style="color: #DD0000">"10"</span><span style="color: #007700">) {echo </span><span style="color: #DD0000">"&lt;p&gt;&lt;b&gt;X: Ostalo: "</span><span style="color: #007700">.</span><span style="color: #0000BB">$x</span><span style="color: #007700">.</span><span style="color: #DD0000">" Y: Ostalo: "</span><span style="color: #007700">.</span><span style="color: #0000BB">$y</span><span style="color: #007700">.</span><span style="color: #DD0000">" &lt;/b&gt;&lt;/p&gt;"</span><span style="color: #007700">;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #0000BB">?&gt;</span> </span> </code>
Output for 4.4.0 - 4.4.9
<code><font color="#000000"> <font color="#0000BB">&lt;?php<br />$x&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">100</font><font color="#007700">;&nbsp;</font><font color="#0000BB">$y&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">100</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(</font><font color="#0000BB">$i</font><font color="#007700">=</font><font color="#0000BB">1</font><font color="#007700">;&nbsp;</font><font color="#0000BB">$i</font><font color="#007700">&lt;=</font><font color="#0000BB">10</font><font color="#007700">;&nbsp;</font><font color="#0000BB">$i</font><font color="#007700">++)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$rand_x&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">rand</font><font color="#007700">(</font><font color="#0000BB">1</font><font color="#007700">,</font><font color="#0000BB">20</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$actual_x&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">$x</font><font color="#007700">-</font><font color="#0000BB">$rand_x</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$x&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">$actual_x</font><font color="#007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</font><font color="#DD0000">"X:&nbsp;Číslo:&nbsp;"</font><font color="#007700">.&nbsp;</font><font color="#0000BB">$rand_x&nbsp;</font><font color="#007700">.</font><font color="#DD0000">"&nbsp;bolo&nbsp;odčítané&nbsp;a&nbsp;ostalo&nbsp;"</font><font color="#007700">.&nbsp;</font><font color="#0000BB">$x&nbsp;</font><font color="#007700">.</font><font color="#DD0000">"&lt;br&nbsp;/&gt;\n"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</font><font color="#0000BB">$x</font><font color="#007700">&lt;=</font><font color="#0000BB">0</font><font color="#007700">)&nbsp;{exit(</font><font color="#DD0000">"&lt;p&gt;&lt;b&gt;X&nbsp;skončil&nbsp;!&lt;/b&gt;&lt;/p&gt;"</font><font color="#007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$rand_y&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">rand</font><font color="#007700">(</font><font color="#0000BB">1</font><font color="#007700">,</font><font color="#0000BB">20</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$actual_y&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">$y</font><font color="#007700">-</font><font color="#0000BB">$rand_y</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$y&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#0000BB">$actual_y</font><font color="#007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</font><font color="#DD0000">"Y:&nbsp;Číslo:&nbsp;"</font><font color="#007700">.&nbsp;</font><font color="#0000BB">$rand_y&nbsp;</font><font color="#007700">.</font><font color="#DD0000">"&nbsp;bolo&nbsp;odčítané&nbsp;a&nbsp;ostalo&nbsp;"</font><font color="#007700">.&nbsp;</font><font color="#0000BB">$y&nbsp;</font><font color="#007700">.</font><font color="#DD0000">"&lt;br&nbsp;/&gt;\n"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</font><font color="#0000BB">$y</font><font color="#007700">&lt;=</font><font color="#0000BB">0</font><font color="#007700">)&nbsp;{exit(</font><font color="#DD0000">"&lt;p&gt;&lt;b&gt;Y&nbsp;skončil&nbsp;!&lt;/b&gt;&lt;/p&gt;"</font><font color="#007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</font><font color="#0000BB">$i</font><font color="#007700">==</font><font color="#DD0000">"10"</font><font color="#007700">)&nbsp;{echo&nbsp;</font><font color="#DD0000">"&lt;p&gt;&lt;b&gt;X:&nbsp;Ostalo:&nbsp;"</font><font color="#007700">.</font><font color="#0000BB">$x</font><font color="#007700">.</font><font color="#DD0000">"&nbsp;Y:&nbsp;Ostalo:&nbsp;"</font><font color="#007700">.</font><font color="#0000BB">$y</font><font color="#007700">.</font><font color="#DD0000">"&nbsp;&lt;/b&gt;&lt;/p&gt;"</font><font color="#007700">;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></font><font color="#0000BB">?&gt;</font> </font> </code>
Output for 4.3.0 - 4.3.11
<code><font color="#000000"> <font color="#0000BB">&lt;?php<br />$x </font><font color="#007700">= </font><font color="#0000BB">100</font><font color="#007700">; </font><font color="#0000BB">$y </font><font color="#007700">= </font><font color="#0000BB">100</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;for (</font><font color="#0000BB">$i</font><font color="#007700">=</font><font color="#0000BB">1</font><font color="#007700">; </font><font color="#0000BB">$i</font><font color="#007700">&lt;=</font><font color="#0000BB">10</font><font color="#007700">; </font><font color="#0000BB">$i</font><font color="#007700">++) {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$rand_x </font><font color="#007700">= </font><font color="#0000BB">rand</font><font color="#007700">(</font><font color="#0000BB">1</font><font color="#007700">,</font><font color="#0000BB">20</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$actual_x </font><font color="#007700">= </font><font color="#0000BB">$x</font><font color="#007700">-</font><font color="#0000BB">$rand_x</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$x </font><font color="#007700">= </font><font color="#0000BB">$actual_x</font><font color="#007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"X: Číslo: "</font><font color="#007700">. </font><font color="#0000BB">$rand_x </font><font color="#007700">.</font><font color="#DD0000">" bolo odčítané a ostalo "</font><font color="#007700">. </font><font color="#0000BB">$x </font><font color="#007700">.</font><font color="#DD0000">"&lt;br /&gt;\n"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (</font><font color="#0000BB">$x</font><font color="#007700">&lt;=</font><font color="#0000BB">0</font><font color="#007700">) {exit(</font><font color="#DD0000">"&lt;p&gt;&lt;b&gt;X skončil !&lt;/b&gt;&lt;/p&gt;"</font><font color="#007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$rand_y </font><font color="#007700">= </font><font color="#0000BB">rand</font><font color="#007700">(</font><font color="#0000BB">1</font><font color="#007700">,</font><font color="#0000BB">20</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$actual_y </font><font color="#007700">= </font><font color="#0000BB">$y</font><font color="#007700">-</font><font color="#0000BB">$rand_y</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$y </font><font color="#007700">= </font><font color="#0000BB">$actual_y</font><font color="#007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"Y: Číslo: "</font><font color="#007700">. </font><font color="#0000BB">$rand_y </font><font color="#007700">.</font><font color="#DD0000">" bolo odčítané a ostalo "</font><font color="#007700">. </font><font color="#0000BB">$y </font><font color="#007700">.</font><font color="#DD0000">"&lt;br /&gt;\n"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (</font><font color="#0000BB">$y</font><font color="#007700">&lt;=</font><font color="#0000BB">0</font><font color="#007700">) {exit(</font><font color="#DD0000">"&lt;p&gt;&lt;b&gt;Y skončil !&lt;/b&gt;&lt;/p&gt;"</font><font color="#007700">);}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (</font><font color="#0000BB">$i</font><font color="#007700">==</font><font color="#DD0000">"10"</font><font color="#007700">) {echo </font><font color="#DD0000">"&lt;p&gt;&lt;b&gt;X: Ostalo: "</font><font color="#007700">.</font><font color="#0000BB">$x</font><font color="#007700">.</font><font color="#DD0000">" Y: Ostalo: "</font><font color="#007700">.</font><font color="#0000BB">$y</font><font color="#007700">.</font><font color="#DD0000">" &lt;/b&gt;&lt;/p&gt;"</font><font color="#007700">;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></font><font color="#0000BB">?&gt;</font> </font> </code>