3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); REQUIRE_ONCE 'flag.php'; $hash_0 = $_GET[md5($_SERVER['REMOTE_ADDR'])]; $hash_1 = $_GET[md5($_SERVER['HTTP_USER_AGENT'])]; if ($hash_0 == $hash_1) if (md5($hash_0) === hash('md5', $hash_1)) if (hash('sha512', $hash_0, true) == hash('sha512', $hash_1, true)) echo 'You got it! Here is your flag:' . $FLAG; return;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 45
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 45
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 45
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
Branch analysis from position: 45
Branch analysis from position: 45
filename:       /in/jcBkW
function name:  (null)
number of ops:  47
compiled vars:  !0 = $hash_0, !1 = $hash_1, !2 = $FLAG
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    3     3        INCLUDE_OR_EVAL                                          'flag.php', REQUIRE_ONCE
    4     4        INIT_FCALL                                               'md5'
          5        FETCH_R                      global              ~6      '_SERVER'
          6        FETCH_DIM_R                                      ~7      ~6, 'REMOTE_ADDR'
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                         $8      
          9        FETCH_R                      global              ~5      '_GET'
         10        FETCH_DIM_R                                      ~9      ~5, $8
         11        ASSIGN                                                   !0, ~9
    5    12        INIT_FCALL                                               'md5'
         13        FETCH_R                      global              ~12     '_SERVER'
         14        FETCH_DIM_R                                      ~13     ~12, 'HTTP_USER_AGENT'
         15        SEND_VAL                                                 ~13
         16        DO_ICALL                                         $14     
         17        FETCH_R                      global              ~11     '_GET'
         18        FETCH_DIM_R                                      ~15     ~11, $14
         19        ASSIGN                                                   !1, ~15
    6    20        IS_EQUAL                                                 !0, !1
         21      > JMPZ                                                     ~17, ->45
    7    22    >   INIT_FCALL                                               'md5'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $18     
         25        INIT_FCALL                                               'hash'
         26        SEND_VAL                                                 'md5'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $19     
         29        IS_IDENTICAL                                             $18, $19
         30      > JMPZ                                                     ~20, ->45
    8    31    >   INIT_FCALL                                               'hash'
         32        SEND_VAL                                                 'sha512'
         33        SEND_VAR                                                 !0
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $21     
         36        INIT_FCALL                                               'hash'
         37        SEND_VAL                                                 'sha512'
         38        SEND_VAR                                                 !1
         39        SEND_VAL                                                 <true>
         40        DO_ICALL                                         $22     
         41        IS_EQUAL                                                 $21, $22
         42      > JMPZ                                                     ~23, ->45
    9    43    >   CONCAT                                           ~24     'You+got+it%21+Here+is+your+flag%3A', !2
         44        ECHO                                                     ~24
   10    45    > > RETURN                                                   null
         46*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.13 ms | 1392 KiB | 19 Q