3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt($a) { $tmp_1 = strtolower(strrev($a)); $tmp_2 = (substr($tmp_1, 0,4) ^ hexdec('BFF')) ^ hexdec('D77D'); $tmp_3 = substr($tmp_1,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.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined array key "pass" in /in/X991o on line 24 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/X991o on line 4 Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/X991o:5 Stack trace: #0 /in/X991o(24): decrypt(NULL) #1 {main} thrown in /in/X991o on line 5
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Warning: Undefined array key "pass" in /in/X991o on line 24 Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/X991o:5 Stack trace: #0 /in/X991o(24): decrypt(NULL) #1 {main} thrown in /in/X991o on line 5
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined index: pass in /in/X991o on line 24 Warning: A non-numeric value encountered in /in/X991o on line 5
Output for 7.3.32 - 7.3.33
Warning: A non-numeric value encountered in /in/X991o on line 5
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
Notice: Undefined index: pass in /in/X991o on line 24

preferences:
183.58 ms | 402 KiB | 329 Q