<?php
echo "Starting program\n";
$x = 0;
while(++$x < 10) {
echo '$x = ' . $x . "\n";
$y = 0;
while(++$y < 10) {
if($y == 5) break;
echo '$y = ' . $y . "\n";
}
}
?>
- Output for 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- Starting program
$x = 1
$y = 1
$y = 2
$y = 3
$y = 4
$x = 2
$y = 1
$y = 2
$y = 3
$y = 4
$x = 3
$y = 1
$y = 2
$y = 3
$y = 4
$x = 4
$y = 1
$y = 2
$y = 3
$y = 4
$x = 5
$y = 1
$y = 2
$y = 3
$y = 4
$x = 6
$y = 1
$y = 2
$y = 3
$y = 4
$x = 7
$y = 1
$y = 2
$y = 3
$y = 4
$x = 8
$y = 1
$y = 2
$y = 3
$y = 4
$x = 9
$y = 1
$y = 2
$y = 3
$y = 4
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Starting program
$x = 1
$y = 1
$y = 2
$y = 3
$y = 4
$x = 2
$y = 1
$y = 2
$y = 3
$y = 4
$x = 3
$y = 1
$y = 2
$y = 3
$y = 4
$x = 4
$y = 1
$y = 2
$y = 3
$y = 4
$x = 5
$y = 1
$y = 2
$y = 3
$y = 4
$x = 6
$y = 1
$y = 2
$y = 3
$y = 4
$x = 7
$y = 1
$y = 2
$y = 3
$y = 4
$x = 8
$y = 1
$y = 2
$y = 3
$y = 4
$x = 9
$y = 1
$y = 2
$y = 3
$y = 4
preferences:
185.04 ms | 402 KiB | 234 Q