3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt($a) { $tmp = strtolower(strrev($a)); $tmps = (substr($tmp, 0.4) ^ hexdec('BFF')) ^ hexdec('D77D'); } 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/gDVjS on line 19 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gDVjS on line 4 Deprecated: Implicit conversion from float 0.4 to int loses precision in /in/gDVjS on line 5 Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/gDVjS:5 Stack trace: #0 /in/gDVjS(19): decrypt(NULL) #1 {main} thrown in /in/gDVjS on line 5
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Warning: Undefined array key "pass" in /in/gDVjS on line 19 Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/gDVjS:5 Stack trace: #0 /in/gDVjS(19): decrypt(NULL) #1 {main} thrown in /in/gDVjS on line 5
Process exited with code 255.
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined index: pass in /in/gDVjS on line 19 Warning: A non-numeric value encountered in /in/gDVjS on line 5
Output for 7.3.32 - 7.3.33
Warning: A non-numeric value encountered in /in/gDVjS on line 5
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20
Notice: Undefined index: pass in /in/gDVjS on line 19

preferences:
146.78 ms | 402 KiB | 225 Q