3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt($a) { $strings = strtolower(strrev($str)); $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('pass'); define('__FLAG__', 'flag{hidden_flag}'); if(decrypt('pass') == 'pwning_the_phpreverse!') { echo __FLAG__; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $str in /in/s4AZN on line 4 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/s4AZN on line 4 Warning: Undefined variable $tmp in /in/s4AZN on line 16 Warning: Undefined variable $str in /in/s4AZN on line 4 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/s4AZN on line 4 Warning: Undefined variable $tmp in /in/s4AZN on line 16

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
36.31 ms | 402 KiB | 8 Q