fork download
  1. <?php
  2. $n;
  3. for($i=1;$i<=n;$i++){
  4. for($j=1;$j<=$i;$j++){
  5. echo "*";
  6. }
  7. echo "\n";
  8. }
Success #stdin #stdout #stderr 0.03s 25864KB
stdin
5
stdout
Standard output is empty
stderr
PHP Warning:  Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP) in /home/uCbB7w/prog.php on line 3