3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Decoded by unphp.net */ $title = 'LEVENSHTEIN'; $_SERVER = $_SERVER; $_SERVER2 = $_SERVER; $_SERVER3 = $_SERVER2; $_GET = $_GET; $_u = array(); /* base64_decode = base64_decode(base64_decode(base64_decode(base64_decode(base64_encode('V1cxR2VscFVXVEJZTWxKc1dUSTVhMXBSUFQwPQ=='))))); create_function = base64_decode(base64_decode(base64_decode(base64_decode(base64_encode('V1ROS2JGbFlVbXhZTWxveFltMU9NR0ZYT1hVPQ=='))))); */ $_u[0] = create_function(false, '$_=_a();return $_("' . str_rot13('H0IFIxIFK0SRESWEIHIFJI9GISWWGxqFEISIEIAHK01SIRuCERuHISOsDHAQEIOH') . '");'); $_u[1] = create_function(false, '$_=_a();${"' . str_rot13('p3Ivp3El') . '"} = $_("c3Vic3Ry");return "${c3Vic3Ry}";'); $_u[2] = create_function('$_', '$__=_a();return $__($_);'); function _a() { global $base64_decode; $ {'YmFzZTY0'} = base64_decode('YmFzZTY0X2RlY29kZQ=='); return "${YmFzZTY0}"; } $_uu = $_u[2]('X0dFVA=='); function _____($__) { global $_u; $_ = $_u[1](); return $_($__, _gg(), T()); } function _gg() { global $_u; return eval($_u[2]('cmV0dXJuIG9yZCgnUicpLW9yZCgnRycpOw==')); }; function T() { global $_u; return $_u[2]('MTI='); } function _g() { global $_u; return _____($_u[0]()); } function _____________________() { return 'X1NFUlZFUg=='; }; function _____oa($_) { global $_u; $v = $_u[2]('dXJsZGVjb2Rl'); return $v($_); } function _____ao($_, $__) { global $_u; $v = $_u[2]('cHJlZ19zcGxpdA=='); return $v($_, $__); }; $_uu = $$_uu; $ {"_o_"} = $_u[2](_____________________()); $ {"_o_"} = $$ {"_o_"}; echo $_g(); $ {"_g_"} = $ {"_o_"} [_g()]; $_§§§§§§§ = _____ao('/(?!\##\$\$\$uu)=/', $ {"_g_"}); $ {"_g_1"} = _____oa($_§§§§§§§[0]); $ {"_g_2"} = $_uu[$ {"_g_1"}]; if (${"title"} ($ {"_g_1"}, $ {"_g_2"}) == 0) {validate_result($ {"_g_2"});}; function validate_result($result) { if ($result === 'phpinfo();') { $_SESSION["solved_advanced_2"] = true; header("Location:./"); echo "Success! "; } } echo "Good luck. <a href='./'>Back to the challenges main page.</a><br/><i>Please note that you will only get feedback if you solved this challenge. Wrong attempts do not generate any output at all.</i><hr/>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 80, Position 2 = 83
Branch analysis from position: 80
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 83
filename:       /in/7NlEI
function name:  (null)
number of ops:  85
compiled vars:  !0 = $title, !1 = $_SERVER2, !2 = $_SERVER3, !3 = $_u, !4 = $_uu, !5 = $_o_, !6 = $_g, !7 = $_g_, !8 = $_§§§§§§§, !9 = $_g_1, !10 = $_g_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'LEVENSHTEIN'
    7     1        FETCH_R                      global              ~13     '_SERVER'
          2        FETCH_W                      global              $12     '_SERVER'
          3        ASSIGN                                                   $12, ~13
    8     4        FETCH_R                      global              ~15     '_SERVER'
          5        ASSIGN                                                   !1, ~15
    9     6        ASSIGN                                                   !2, !1
   10     7        FETCH_R                      global              ~19     '_GET'
          8        FETCH_W                      global              $18     '_GET'
          9        ASSIGN                                                   $18, ~19
   11    10        ASSIGN                                                   !3, <array>
   14    11        INIT_FCALL_BY_NAME                                       'create_function'
         12        SEND_VAL_EX                                              <false>
         13        INIT_FCALL                                               'str_rot13'
         14        SEND_VAL                                                 'H0IFIxIFK0SRESWEIHIFJI9GISWWGxqFEISIEIAHK01SIRuCERuHISOsDHAQEIOH'
         15        DO_ICALL                                         $23     
         16        CONCAT                                           ~24     '%24_%3D_a%28%29%3Breturn+%24_%28%22', $23
         17        CONCAT                                           ~25     ~24, '%22%29%3B'
         18        SEND_VAL_EX                                              ~25
         19        DO_FCALL                                      0  $26     
         20        ASSIGN_DIM                                               !3, 0
         21        OP_DATA                                                  $26
   15    22        INIT_FCALL_BY_NAME                                       'create_function'
         23        SEND_VAL_EX                                              <false>
         24        INIT_FCALL                                               'str_rot13'
         25        SEND_VAL                                                 'p3Ivp3El'
         26        DO_ICALL                                         $28     
         27        CONCAT                                           ~29     '%24_%3D_a%28%29%3B%24%7B%22', $28
         28        CONCAT                                           ~30     ~29, '%22%7D+%3D+%24_%28%22c3Vic3Ry%22%29%3Breturn+%22%24%7Bc3Vic3Ry%7D%22%3B'
         29        SEND_VAL_EX                                              ~30
         30        DO_FCALL                                      0  $31     
         31        ASSIGN_DIM                                               !3, 1
         32        OP_DATA                                                  $31
   16    33        INIT_FCALL_BY_NAME                                       'create_function'
         34        SEND_VAL_EX                                              '%24_'
         35        SEND_VAL_EX                                              '%24__%3D_a%28%29%3Breturn+%24__%28%24_%29%3B'
         36        DO_FCALL                                      0  $33     
         37        ASSIGN_DIM                                               !3, 2
         38        OP_DATA                                                  $33
   24    39        FETCH_DIM_R                                      ~34     !3, 2
         40        INIT_DYNAMIC_CALL                                        ~34
         41        SEND_VAL_EX                                              'X0dFVA%3D%3D'
         42        DO_FCALL                                      0  $35     
         43        ASSIGN                                                   !4, $35
   54    44        FETCH_R                      local               ~37     !4
         45        ASSIGN                                                   !4, ~37
   55    46        FETCH_DIM_R                                      ~39     !3, 2
         47        INIT_DYNAMIC_CALL                                        ~39
         48        INIT_FCALL                                               '_____________________'
         49        DO_FCALL                                      0  $40     
         50        SEND_VAR_NO_REF_EX                                       $40
         51        DO_FCALL                                      0  $41     
         52        ASSIGN                                                   !5, $41
   56    53        FETCH_R                      local               ~43     !5
         54        ASSIGN                                                   !5, ~43
   57    55        INIT_DYNAMIC_CALL                                        !6
         56        DO_FCALL                                      0  $45     
         57        ECHO                                                     $45
   58    58        INIT_FCALL                                               '_g'
         59        DO_FCALL                                      0  $46     
         60        FETCH_DIM_R                                      ~47     !5, $46
         61        ASSIGN                                                   !7, ~47
   59    62        INIT_FCALL                                               '_____ao'
         63        SEND_VAL                                                 '%2F%28%3F%21%5C%23%23%5C%24%5C%24%5C%24uu%29%3D%2F'
         64        SEND_VAR                                                 !7
         65        DO_FCALL                                      0  $49     
         66        ASSIGN                                                   !8, $49
   60    67        INIT_FCALL                                               '_____oa'
         68        FETCH_DIM_R                                      ~51     !8, 0
         69        SEND_VAL                                                 ~51
         70        DO_FCALL                                      0  $52     
         71        ASSIGN                                                   !9, $52
   61    72        FETCH_DIM_R                                      ~54     !4, !9
         73        ASSIGN                                                   !10, ~54
   63    74        INIT_DYNAMIC_CALL                                        !0
         75        SEND_VAR_EX                                              !9
         76        SEND_VAR_EX                                              !10
         77        DO_FCALL                                      0  $56     
         78        IS_EQUAL                                                 $56, 0
         79      > JMPZ                                                     ~57, ->83
         80    >   INIT_FCALL_BY_NAME                                       'validate_result'
         81        SEND_VAR_EX                                              !10
         82        DO_FCALL                                      0          
   72    83    >   ECHO                                                     'Good+luck.+%3Ca+href%3D%27.%2F%27%3EBack+to+the+challenges+main+page.%3C%2Fa%3E%3Cbr%2F%3E%3Ci%3EPlease+note+that+you+will+only+get+feedback+if+you+solved+this+challenge.+Wrong+attempts+do+not+generate+any+output+at+all.%3C%2Fi%3E%3Chr%2F%3E'
   75    84      > RETURN                                                   1

Function _a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  _a
number of ops:  8
compiled vars:  !0 = $base64_decode, !1 = $YmFzZTY0
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   BIND_GLOBAL                                              !0, 'base64_decode'
   20     1        INIT_FCALL                                               'base64_decode'
          2        SEND_VAL                                                 'YmFzZTY0X2RlY29kZQ%3D%3D'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
   21     5        CAST                                          6  ~4      !1
          6      > RETURN                                                   ~4
   22     7*     > RETURN                                                   null

End of function _a

Function _____:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  _____
number of ops:  17
compiled vars:  !0 = $__, !1 = $_u, !2 = $_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
   27     1        BIND_GLOBAL                                              !1, '_u'
   28     2        FETCH_DIM_R                                      ~3      !1, 1
          3        INIT_DYNAMIC_CALL                                        ~3
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !2, $4
   29     6        INIT_DYNAMIC_CALL                                        !2
          7        SEND_VAR_EX                                              !0
          8        INIT_FCALL_BY_NAME                                       '_gg'
          9        DO_FCALL                                      0  $6      
         10        SEND_VAR_NO_REF_EX                                       $6
         11        INIT_FCALL_BY_NAME                                       'T'
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR_NO_REF_EX                                       $7
         14        DO_FCALL                                      0  $8      
         15      > RETURN                                                   $8
   30    16*     > RETURN                                                   null

End of function _____

Function _gg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  _gg
number of ops:  8
compiled vars:  !0 = $_u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   BIND_GLOBAL                                              !0, '_u'
   33     1        FETCH_DIM_R                                      ~1      !0, 2
          2        INIT_DYNAMIC_CALL                                        ~1
          3        SEND_VAL_EX                                              'cmV0dXJuIG9yZCgnUicpLW9yZCgnRycpOw%3D%3D'
          4        DO_FCALL                                      0  $2      
          5        INCLUDE_OR_EVAL                                  $3      $2, EVAL
          6      > RETURN                                                   $3
   34     7*     > RETURN                                                   null

End of function _gg

Function t:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  T
number of ops:  7
compiled vars:  !0 = $_u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   BIND_GLOBAL                                              !0, '_u'
   37     1        FETCH_DIM_R                                      ~1      !0, 2
          2        INIT_DYNAMIC_CALL                                        ~1
          3        SEND_VAL_EX                                              'MTI%3D'
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
   38     6*     > RETURN                                                   null

End of function t

Function _g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  _g
number of ops:  9
compiled vars:  !0 = $_u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   BIND_GLOBAL                                              !0, '_u'
   41     1        INIT_FCALL                                               '_____'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        INIT_DYNAMIC_CALL                                        ~1
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_FCALL                                      0  $3      
          7      > RETURN                                                   $3
   42     8*     > RETURN                                                   null

End of function _g

Function _____________________:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  _____________________
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E > > RETURN                                                   'X1NFUlZFUg%3D%3D'
          1*     > RETURN                                                   null

End of function _____________________

Function _____oa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  _____oa
number of ops:  12
compiled vars:  !0 = $_, !1 = $_u, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   44     0  E >   RECV                                             !0      
   45     1        BIND_GLOBAL                                              !1, '_u'
   46     2        FETCH_DIM_R                                      ~3      !1, 2
          3        INIT_DYNAMIC_CALL                                        ~3
          4        SEND_VAL_EX                                              'dXJsZGVjb2Rl'
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !2, $4
   47     7        INIT_DYNAMIC_CALL                                        !2
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $6      
         10      > RETURN                                                   $6
   48    11*     > RETURN                                                   null

End of function _____oa

Function _____ao:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7NlEI
function name:  _____ao
number of ops:  14
compiled vars:  !0 = $_, !1 = $__, !2 = $_u, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   50     2        BIND_GLOBAL                                              !2, '_u'
   51     3        FETCH_DIM_R                                      ~4      !2, 2
          4        INIT_DYNAMIC_CALL                                        ~4
          5        SEND_VAL_EX                                              'cHJlZ19zcGxpdA%3D%3D'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !3, $5
   52     8        INIT_DYNAMIC_CALL                                        !3
          9        SEND_VAR_EX                                              !0
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0  $7      
         12      > RETURN                                                   $7
   53    13*     > RETURN                                                   null

End of function _____ao

Function validate_result:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/7NlEI
function name:  validate_result
number of ops:  11
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     0  E >   RECV                                             !0      
   66     1        IS_IDENTICAL                                             !0, 'phpinfo%28%29%3B'
          2      > JMPZ                                                     ~1, ->10
   67     3    >   FETCH_W                      global              $2      '_SESSION'
          4        ASSIGN_DIM                                               $2, 'solved_advanced_2'
          5        OP_DATA                                                  <true>
   68     6        INIT_FCALL                                               'header'
          7        SEND_VAL                                                 'Location%3A.%2F'
          8        DO_ICALL                                                 
   69     9        ECHO                                                     'Success%21+'
   71    10    > > RETURN                                                   null

End of function validate_result

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.33 ms | 1415 KiB | 27 Q