3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function decrypt($a) { $a1 = strtolower(strrev($a)); $a2 = hexdec(substr($a1,0,4)) ^ hexdec('BFF') ^ hexdec('D77D'); $a3 = substr($a1,4); $a5 = 0; unset($ans); for($a5=0;$a5<strlen($a3);$a5+=6){ ++$a6; $mul=$a6 * $a6; $a7=$mul ^ hexdec('6E'); $ans = $ans . chr(octdec(hexdec(substr($a3,$a5,6))) ^ hexdec('AFE43') ^ hexdec('399AA3') ^ $a7 ^ octdec(hexdec(substr($a3,$a5,6)))); } return $ans; } echo decrypt("DEFBFD2EFBFDBCFBFD58FBFD56FBFD31FBFDDFEBFD3BEBFD48EBFD16EBFD83EBFD2DDBFDDFDBFDBCDBFDCBDBFD87DBFDB9DBFDB5DBFD76DBFDF6DBFDF5DBFDD5DBFD82ED"); define('__FLAG__', 'flag{hidden_flag}'); if(decrypt("DEFBFD2EFBFDBCFBFD58FBFD56FBFD31FBFDDFEBFD3BEBFD48EBFD16EBFD83EBFD2DDBFDDFDBFDBCDBFDCBDBFD87DBFDB9DBFDB5DBFD76DBFDF6DBFDF5DBFDD5DBFD82ED") == 'pwning_the_phpreverse!') { echo __FLAG__; } ?>
based on 1r0WY
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Notice: Undefined variable: a6 in /in/LKU0l on line 10 Notice: Undefined variable: ans in /in/LKU0l on line 15 ����������'Jo����7j Notice: Undefined variable: a6 in /in/LKU0l on line 10 Notice: Undefined variable: ans in /in/LKU0l on line 15