fork download
  1. <?php
  2. $argv[1] = 3;
  3. echo($s=str_pad)(" ",$z=1+2*$a=$argv[1],_).$s('
  4. /',$z+1," ").'\
  5. ';for($i=0;$i<=$a;)echo$s($s("",$i)."\\",$z-$i++).'/
  6. ';
  7. // your code goes here
Success #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout
 ______
/      \
\      /
 \    /
  \  /
   \/
stderr
PHP Notice:  Use of undefined constant str_pad - assumed 'str_pad' in /home/WdVaJc/prog.php on line 3
PHP Notice:  Use of undefined constant _ - assumed '_' in /home/WdVaJc/prog.php on line 3