3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt($a) { $tmp_1 = strtolower(strrev($a)); $tmp_2 = (substr($tmp, 0,4) ^ hexdec('BFF')) ^ hexdec('D77D'); $tmp_3 = substr($tmp,4); for($tmp_5=0; $tmp_5 < strlen($tmp_3); $tmp_5++) { } } define('__FLAG__', 'flag{hidden_flag}'); if(decrypt($_REQUEST['pass']) == 'pwning_the_phpreverse!') { __FLAG__; } ?>
Output for 8.4.1 - 8.4.2
Warning: Undefined array key "pass" in /in/d2gsq on line 24 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/d2gsq on line 4 Warning: Undefined variable $tmp in /in/d2gsq on line 5 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/d2gsq on line 5 Fatal error: Uncaught TypeError: Unsupported operand types: int ^ string in /in/d2gsq:5 Stack trace: #0 /in/d2gsq(24): decrypt(NULL) #1 {main} thrown in /in/d2gsq on line 5
Process exited with code 255.
Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15
Warning: Undefined array key "pass" in /in/d2gsq on line 24 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/d2gsq on line 4 Warning: Undefined variable $tmp in /in/d2gsq on line 5 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/d2gsq on line 5 Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/d2gsq:5 Stack trace: #0 /in/d2gsq(24): decrypt(NULL) #1 {main} thrown in /in/d2gsq on line 5
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Warning: Undefined array key "pass" in /in/d2gsq on line 24 Warning: Undefined variable $tmp in /in/d2gsq on line 5 Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/d2gsq:5 Stack trace: #0 /in/d2gsq(24): decrypt(NULL) #1 {main} thrown in /in/d2gsq on line 5
Process exited with code 255.
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined index: pass in /in/d2gsq on line 24 Notice: Undefined variable: tmp in /in/d2gsq on line 5 Warning: A non-numeric value encountered in /in/d2gsq on line 5 Notice: Undefined variable: tmp in /in/d2gsq on line 6
Output for 7.3.32 - 7.3.33
Warning: A non-numeric value encountered in /in/d2gsq on line 5
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
Notice: Undefined index: pass in /in/d2gsq on line 24 Notice: Undefined variable: tmp in /in/d2gsq on line 5 Notice: Undefined variable: tmp in /in/d2gsq on line 6

preferences:
45.71 ms | 414 KiB | 5 Q