3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function decrypt($a) { $strings = strtolower(strrev($a)); $MyKey = hexdec(substr($strings, 0, 4)) ^ hexdec('BFF') ^ hexdec('D77D'); $Temps = substr($strings, 4); unset($tmp); //echo $n; for ($i = 0; $i < strlen($Temps); $i+=6) { ++$n; $cal = ($n * $n) ^ hexdec("3E"); //echo chr(octdec(hexdec(substr($Temps, $i, 6))) ^ ($MyKey ^ hexdec("AFE43") ^ hexdec("399AA3") ^ $cal)) . "\n"; $tmp = $tmp . chr(octdec(hexdec(substr($Temps, $i, 6))) ^ ($MyKey ^ hexdec('AFE43') ^ hexdec('399AA3') ^ $cal)); } return $tmp; } echo decrypt('84EBFD76EBFD62EBFD80EBFD0CDBFD69DBFD85DBFD650CFD920CFDCDFBFD5BFBFDF4FBFD87FBFDE6FBFD16FBFD5FEBFD61FBFDEFEBFDA0FBFDAEEBFD20FBFD00FBFD93FD') . "<br>"; define('__FLAG__', 'flag{hidden_flag}'); if(decrypt('DEFBFD2EFBFDBCFBFD58FBFD56FBFD31FBFDDFEBFD3BEBFD48EBFD16EBFD83EBFD2DDBFDDFDBFDBCDBFDCBDBFD87DBFDB9DBFDB5DBFD76DBFDF6DBFDF5DBFDD5DBFD82ED') == 'pwning_the_phpreverse!') { echo __FLAG__; } ?>
based on 8gCQp
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Notice: Undefined variable: n in /in/X84QQ on line 11 Notice: Undefined variable: tmp in /in/X84QQ on line 14 pwning_the_phpreverse!<br> Notice: Undefined variable: n in /in/X84QQ on line 11 Notice: Undefined variable: tmp in /in/X84QQ on line 14 flag{hidden_flag}