3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt($a) { $a1 = strtolower(strrev($a)); $a2 = hexdec(substr($a1,0, 4)) ^ hexdec('BFF') ^ hexdec('D77D'); $a3 = substr($a2,4); $a4 = ""; $a5 = 0; for($a5=0;$a5<strlen($a3);$a5+=6){ $a6 = ++$a; } $mul=$a6 * $a6; $a7=$mul ^ $hexdec('6E'); $ans = octdec(hexdec(substr($a3,0,6))) ^ hexdec('AFE43') ^ hexdec('399AA3') ^ $a7 ^ octdec(hexdec(substr($a3,0,6))); return $a4 . chr($ans); } 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.4, 8.3.6
Warning: Undefined array key "pass" in /in/qLMau on line 30 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/qLMau on line 4 Warning: Undefined variable $hexdec in /in/qLMau on line 13 Fatal error: Uncaught Error: Value of type null is not callable in /in/qLMau:13 Stack trace: #0 /in/qLMau(30): decrypt(1) #1 {main} thrown in /in/qLMau on line 13
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: Undefined array key "pass" in /in/qLMau on line 30 Deprecated: strrev(): Passing null to parameter #1 ($string) of type string is deprecated in /in/qLMau on line 4 Warning: Undefined variable $hexdec in /in/qLMau on line 13 Fatal error: Uncaught Error: Value of type null is not callable in /in/qLMau:13 Stack trace: #0 /in/qLMau(30): decrypt(1) #1 {main} thrown in /in/qLMau on line 13
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Warning: Undefined array key "pass" in /in/qLMau on line 30 Warning: Undefined variable $hexdec in /in/qLMau on line 13 Fatal error: Uncaught Error: Value of type null is not callable in /in/qLMau:13 Stack trace: #0 /in/qLMau(30): decrypt(1) #1 {main} thrown in /in/qLMau on line 13
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 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
Notice: Undefined index: pass in /in/qLMau on line 30 Notice: Undefined variable: hexdec in /in/qLMau on line 13 Fatal error: Uncaught Error: Function name must be a string in /in/qLMau:13 Stack trace: #0 /in/qLMau(30): decrypt(1) #1 {main} thrown in /in/qLMau on line 13
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.26
Fatal error: Uncaught Error: Function name must be a string in /in/qLMau:13 Stack trace: #0 /in/qLMau(30): decrypt(1) #1 {main} thrown in /in/qLMau on line 13
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Notice: Undefined index: pass in /in/qLMau on line 30 Notice: Undefined variable: hexdec in /in/qLMau on line 13 Fatal error: Function name must be a string in /in/qLMau on line 13
Process exited with code 255.

preferences:
213.2 ms | 401 KiB | 291 Q