PHP hello world obfuscation contest 05-02-2016, 12:31 AM
#1
Title says it all, create an obfuscated PHP script that simply prints "hello world" (case doesn't matter). The objective is to make it look at confusing as possible.
Rules:
No encrypting, encoding (base64 and whatnot), hashing, etc.
No redundant code like comments or x+1-1+1-1 etc
Here's what I was able to come up with in an hour or so, I even ended up confusing myself near the end, but I got it to work. It just prints "hello world" -
Rules:
No encrypting, encoding (base64 and whatnot), hashing, etc.
No redundant code like comments or x+1-1+1-1 etc
Here's what I was able to come up with in an hour or so, I even ended up confusing myself near the end, but I got it to work. It just prints "hello world" -
PHP Code:
@$_["\x68"]=chr(ord("\x68")).chr(ord("e")).chr(104)."\x6C".chr(108)."\x2F"."\x52".chr(111).chr(108)."\x20";@$___=$_["h"];@$__[1]=$_[chr(104)][0x0+(0*0)-50+(25*(sqrt(4)))].$___[(int)"\x37"];@$__[0x02]=$___[0x0+(sqrt(sqrt(81)))].$_[chr(54+(10*(sqrt(25))))][1].$_["h"][count($_["\x68"])-2]."\x20";@$_["\x77"]=chr(119)."\x6F"."\x72"."balls".chr(108)."\x64"."\x6C".chr(126)."\x2F"."\x52".chr(ord("\x6F"));@$_["lol"]=$_[chr(69+(5*(sqrt(100))))][0].$_["h"][count($_["\x68"])+6].$_[chr(119)][sqrt(16)/2].$_["\x68"][count($_[chr(104)])+3]."\x64";printf($__[sqrt(1)][0].$__[sqrt(4)][1*1].$__[5%3][count($__[(int)"\x32"])-1].$__[(2378420%2)+2][0].$__[9%4][count($__[1])]."\x20".$_["lol"]."\xA");

![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)




![[Image: pBD38Xq.png]](http://i.imgur.com/pBD38Xq.png)
























![[Image: 7ajmN5P.jpg]](https://i.imgur.com/7ajmN5P.jpg)