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'); } echo decrypt("tarunkant"); define('__FLAG__', 'flag{hidden_flag}'); if(decrypt($_REQUEST['pass']) == 'pwning_the_phpreverse!') { __FLAG__; } ?>
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Deprecated: Implicit conversion from float 0.4 to int loses precision in /in/ZRRaY on line 5 Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/ZRRaY:5 Stack trace: #0 /in/ZRRaY(14): decrypt('tarunkant') #1 {main} thrown in /in/ZRRaY on line 5
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Fatal error: Uncaught TypeError: Unsupported operand types: string ^ int in /in/ZRRaY:5 Stack trace: #0 /in/ZRRaY(14): decrypt('tarunkant') #1 {main} thrown in /in/ZRRaY 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.25, 7.4.27 - 7.4.33
Warning: A non-numeric value encountered in /in/ZRRaY on line 5 Notice: Undefined index: pass in /in/ZRRaY on line 19 Warning: A non-numeric value encountered in /in/ZRRaY on line 5
Output for 7.3.32 - 7.3.33, 7.4.26
Warning: A non-numeric value encountered in /in/ZRRaY on line 5 Warning: A non-numeric value encountered in /in/ZRRaY on line 5
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
Notice: Undefined index: pass in /in/ZRRaY on line 19

preferences:
247.02 ms | 401 KiB | 287 Q