3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $H=6; $W=2*$H; for($sor=0;$sor<($H);$sor++){ for($k=0;$k<$W;$k++){ if($k<=($H-$sor-1)){echo"&nbsp";} if($k=($H-$sor)){echo"/";} if(($k>($H-$sor))&&($k<($H+$sor+1))){echo"&nbsp";} if($k=($H+$sor+1)){echo "\\" ;} if($k>($H+$sor+1)){echo "&nbsp";} } }
based on jdVAI