repl.it
@anonymous/

OddUnequaledOsprey

PHP (Legacy)

No description

fork
loading
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error_reporting(~E_NOTICE);


$p=array_fill(0,9,($z=($d=str_pad)("",109)."\n").$z.$z);
foreach(str_split("H HeLiBeB C N O F NeNaMgAlSiP S ClArK CaScTiV CrMnFeCoNiCuZnGaGeAsSeBrKrRbSrY ZrNbMoTcRuRhPdAgCdInSnSbTeI XeCsBaLaCePrNdPmSmEuGdTbDyHoErTmYbLuHfTaW ReOsIrPtAuHgTlPbBiPoAtRnFrRaAcThPaU NpPuAmCmBkCfEsFmMdNoLrRfDbSgBhHsMtDsRgCnNhFlMcLvTsOg",2)as$k=>$v){	
if(array_search($k,$b=[0,2,10,18,36,54,86]))$c++;
$g=$k>56&$k<71|$k>88&$k<103?$c+2:+$c;
$x=$k>70&$k<86|$k>102?$k-14:$k;
foreach(["| ".$d($k+1,3," ",$k<9?2:0)." |","|  $v |","|_____|"]as$m=>$n)
$p[$g]=($r=substr_replace)($p[$g],$n,(($i=$x-$b[$c])+($c<3&$i>1?10:(!$c&$i>0?16:0)))*6+110*$m,7);
}
for($w=5;$w<9;$w++)for($u=0;$u<3;$u++){$p[$w][18+$u*110]=($w+$u)%2?"\\":"/";
if($w>6){$p[$w][102+$u*110]=($w+$u)%2?"\\":"/";}}
echo$d(" _____",103)."_____\n";
$p[0]=$r($p[0],_____,227,5);
$p[0]=$r($p[0],$d("",29,"_____ "),293,29);
$p[2]=$r($p[2],$d("",59,"_____ "),233,59);
echo join($p);
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7
?