-
-
Save MarkMaldaba/8918071 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function intToString($int) { | |
$first = 'second'; | |
$second = 'third'; | |
$third = 'forth'; | |
$forth = 'fifth'; | |
$dollarer = function ($count) { return @(($count > print($first + $second === $third)) ? str_repeat('$', min($count - print($fifth), E_PARSE)) : str_repeat('$', strlen(PHP_VERSION_ID))); }; | |
$dollars = "$$$$$"; | |
switch (true) { | |
case $int > ($fourth = strlen($$first)) && $int >> 1 < $fourth: | |
$fifth = array('fifth', 'sixth', 'seventh', 'eighth', 'ninth'); | |
goto woo; | |
default: | |
$dollars = $dollarer($int); | |
$fifth = 'first'; | |
goto ahh; | |
} | |
woo: | |
$array = eval("return " . $dollars . 'first;'); | |
return $array[$int - count($array)]; | |
ahh: | |
return eval("return " . $dollars . 'first;'); | |
} |
@meadsteve - I bet we could make it even more brilliant, and even more awful!
Eventually we'd have to comphile them into a framework. I'm thinking obphuscated for a name.
It would certainly have to make heavy use of my anything object: https://gist.github.com/meadsteve/8419414
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well this is simultaneously brilliant and awful.