3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('get_magic_quotes_gpc') || !get_magic_quotes_gpc()) { foreach (['_GET', '_POST', '_REQUEST', '_COOKIE'] as $var) { array_walk_recursive($$var, function (&$value) { $value = addslashes($value); }); } if (version_compare(PHP_VERSION, '5.4.0') < 0) { set_magic_quotes_runtime(true); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 29
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 19
Branch analysis from position: 29
Branch analysis from position: 9
filename:       /in/AWIkh
function name:  (null)
number of ops:  30
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'get_magic_quotes_gpc'
          2        DO_ICALL                                         $1      
          3        BOOL_NOT                                         ~2      $1
          4      > JMPNZ_EX                                         ~2      ~2, ->9
          5    >   INIT_FCALL_BY_NAME                                       'get_magic_quotes_gpc'
          6        DO_FCALL                                      0  $3      
          7        BOOL_NOT                                         ~4      $3
          8        BOOL                                             ~2      ~4
          9    > > JMPZ                                                     ~2, ->29
    4    10    > > FE_RESET_R                                       $5      <array>, ->19
         11    > > FE_FETCH_R                                               $5, !0, ->19
    5    12    >   INIT_FCALL                                               'array_walk_recursive'
         13        FETCH_W                      local               $6      !0
         14        SEND_REF                                                 $6
         15        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FAWIkh%3A5%240'
    7    16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
    4    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $5
    9    20        INIT_FCALL                                               'version_compare'
         21        SEND_VAL                                                 '8.0.0'
         22        SEND_VAL                                                 '5.4.0'
         23        DO_ICALL                                         $9      
         24        IS_SMALLER                                               $9, 0
         25      > JMPZ                                                     ~10, ->29
   10    26    >   INIT_FCALL_BY_NAME                                       'set_magic_quotes_runtime'
         27        SEND_VAL_EX                                              <true>
         28        DO_FCALL                                      0          
   12    29    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FAWIkh%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AWIkh
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'addslashes'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    7     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FAWIkh%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.97 ms | 1400 KiB | 21 Q