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3.12.0, 7.0.0 - 7.1.0
@set_time_limit(0); $shit = "127.0.0.1"; $in_ass = 80; function ass_to_dick_to_asm($shit){ echo "you are a " . $shit . ".<br/>"; if($_SERVER['REMOTE_ADDR'] == "::1"){ print "fucking kid, you are running on local-fucking-host."; } else{ echo $_SERVER['REMOTE_ADDR']; } } print "<marquee><h1>greetz to ryanC, Starfall, aush0k, ksm, puremantm and all the other pro hackerz.</h1></marquee>"; ass_to_dick_to_asm('skid'); if(12 / 324 - 23 + 56435 / 342 * 4353 != 718285.677388){ while("shit" == "shit" and "fuck" != "dick" && $fuuck < 10){ fsockopen($shit, $in_ass, $errstr, $errno) * 100; $fuuck = 1; $fuuck++; } print "you just shat your pants. you thought your / was being rm -rf'd.\nit is now..."; system( 'echo dick_the_fuck' ); /* insert rm -rf /* here, in base64 obvs. */ } if( isset ($_POST['day'] ) && "4234534562534" == "4234534562534" ){ $shll_c0de = " \x42\x8b\x69\x21\x67\x6e\x6c \x30\x40\x41\x66\x72\x6b\x7a \x42\x8b\x69\x21\x67\x6e\x6c \x30\x40\x41\x66\x72\x6b\x7a \x42\x8b\x69\x21\x67\x6e\x6c \x30\x40\x41\x66\x72\x6b\x7a "; echo "<br/>" . $shll_c0de; function comPile_GcC($shllcode,$total,$sh1t){ echo $shllcode / $total + $sh1t; echo "ass = " . $shllcode; } } else{ echo " <form action='#shit' method='post'> <input type='submit' name='day' /> </form> "; } $x_days = array('dick', 'shit', 'skid', 'ass', 'fuck', 'kid', 'rice fucker'); foreach($x_days as $x_day){ echo "you are a " . $x_day . "<br/>"; }
Output for hhvm-3.10.0

Process exited with code 153.