3v4l.org

run code in 500+ PHP versions simultaneously
<?php if (!function_exists('get_magic_quotes_gpc')) { function get_magic_quotes_gpc() { echo "Called fallback", PHP_EOL; return false; } } $magicQuotes = get_magic_quotes_gpc(); echo "Magic quotes are ", $magicQuotes ? "On" : "Off", PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/9C6Ui
function name:  (null)
number of ops:  17
compiled vars:  !0 = $magicQuotes
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      > JMPZ                                                         ~2, ->6
    4     5    >   DECLARE_FUNCTION                                             'get_magic_quotes_gpc'
   10     6    >   INIT_FCALL_BY_NAME                                           'get_magic_quotes_gpc'
          7        DO_FCALL                                          0  $3      
          8        ASSIGN                                                       !0, $3
   11     9        ECHO                                                         'Magic+quotes+are+'
         10      > JMPZ                                                         !0, ->13
         11    >   QM_ASSIGN                                            ~5      'On'
         12      > JMP                                                          ->14
         13    >   QM_ASSIGN                                            ~5      'Off'
         14    >   ECHO                                                         ~5
         15        ECHO                                                         '%0A'
   12    16      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9C6Ui
function name:  get_magic_quotes_gpc
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                         'Called+fallback'
          1        ECHO                                                         '%0A'
    6     2      > RETURN                                                       <false>
    7     3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.3 ms | 3314 KiB | 14 Q