Skip to content

Instantly share code, notes, and snippets.

@dylanbr
Last active October 2, 2020 14:11
Show Gist options
  • Save dylanbr/6184b05ce2e0228f3a3bcd0ebca0df13 to your computer and use it in GitHub Desktop.
Save dylanbr/6184b05ce2e0228f3a3bcd0ebca0df13 to your computer and use it in GitHub Desktop.
Fizzbuzz in PHP
<?php
define(i,true+true);define(j,true+false);$d=i;$d++;$q=ceil("$d$d.$d"*$d);$n=[];$e=floor($d+"$d.$d")-true;define(d,$d);define(e,$e);
define(f,join("",array_map(function($v){return chr($v);},str_split(false+false.(bcmul(d.(i<<i).d*d.(i<<j)."7".i.d*d.str_repeat(@(g+g),sizeof(e)<<true)."678".true."4${e}".(@(g+g)).d*d."${e}1229",d**(i)<<sizeof(d))),3))));
ob_start(function($s) {return str_replace([a,b,c],str_split(f,4)+[d=>PHP_EOL],$s);});
while(@strlen($n)<$d&&sizeof($n)<$q){$n[]=rand();}
$q=array_map(function($v){return $v%(e*d)?$v%e?$v%d?$v:b:a:ba;},array_map(function($v) {return ++$v;},array_keys($n)));
echo join(c,$q).c;
@zkrige
Copy link

zkrige commented Oct 2, 2020

thanks. I hate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment