Skip to content

Instantly share code, notes, and snippets.

@StuartFeldt
Created February 11, 2011 01:01
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save StuartFeldt/821737 to your computer and use it in GitHub Desktop.
Save StuartFeldt/821737 to your computer and use it in GitHub Desktop.
Daft PHP
<?php
//
// For my Dell Inspiron 6400. I miss you.
//
for($k=0; $k<16; $k++)
{
for($j=0; $j<4; $j++)
{
for($i=0; $i<4; $i++)
{
switch($i)
{
case 0:
switch($j)
{
case 0:
switch($k)
{
case 0:
print "Work it ";
break;
case 1:
print "Work it ";
break;
default:
print "Work it Harder ";
break;
}
break;
case 1:
switch($k)
{
case 0:
print "Harder ";
break;
case 1:
print "Harder ";
break;
}
break;
case 2:
switch($k)
{
case 0:
print "More than ";
break;
case 1:
break;
default:
print "More than ever ";
break;
}
break;
case 3:
print($k==0) ? "Ever " : "";
break;
}
break;
case 1:
switch($j)
{
case 0:
switch($k)
{
case 0:
print "Make it ";
break;
case 1:
print "Make it ";
break;
case 14:
break;
default:
print "Make it Better ";
break;
}
break;
case 1:
switch($k)
{
case 0:
print "Better ";
break;
case 1:
print "Better ";
break;
}
break;
case 2:
switch($k)
{
case 0:
print "Hour ";
break;
case 1:
break;
case 14:
break;
default:
print "Hour After ";
break;
}
break;
case 3:
print ($k==0) ? "After " : "";
break;
}
break;
case 2:
switch($j)
{
case 0:
switch($k)
{
case 0:
print "Do it ";
break;
case 1:
print "Do it ";
break;
default:
print "Do it Faster ";
break;
}
break;
case 1:
switch($k)
{
case 0:
print "Faster ";
break;
case 1:
print "Faster ";
break;
}
break;
case 2:
switch($k)
{
case 0:
print "Our ";
break;
case 1:
break;
default:
print "Our Work Is ";
break;
}
break;
case 3:
print ($k==0) ? "Work is " : "";
break;
}
break;
case 3:
switch($j)
{
case 0:
switch($k)
{
case 0:
print "Makes Us ";
break;
case 1:
print "Makes Us ";
break;
case 14:
break;
default:
print "Makes us Stronger ";
break;
}
break;
case 1:
switch($k)
{
case 0:
print "Stronger ";
break;
case 1:
print "Stronger ";
break;
}
break;
case 2:
switch($k)
{
case 0:
print "Never ";
break;
case 1:
break;
default:
print "Never Over ";
break;
}
break;
case 3:
print ($k==0) ? "Over " : "";
break;
}
break;
}
}
}
}
?>
@jmathai
Copy link

jmathai commented Feb 11, 2011

@mhitza
Copy link

mhitza commented Feb 11, 2011

@aizatto
Copy link

aizatto commented Feb 5, 2019

Just discovered this again, github has changed their urls.

curl "https://gist.githubusercontent.com/StuartFeldt/821737/raw/58da6ac1e7dc8c476fab930e0d46f99678b38816/daft.php" | php | say

Thanks for the chuckle

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