3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('cd')) { function cd($var) { var_dump($var); } } function corban_error_handler($errno , $errstr, $errfile) { echo '<pre>'; print_r(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)); echo '</pre>'; cd($errno); cd($errstr); cd($errfile); return false; } set_error_handler ('corban_error_handler', E_NOTICE); $b = null; cd($a); cd($b);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/PoDc1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'cd'
          2        DO_ICALL                                         $2      
          3        BOOL_NOT                                         ~3      $2
          4      > JMPZ                                                     ~3, ->6
    4     5    >   DECLARE_FUNCTION                                         'cd'
   20     6    >   INIT_FCALL                                               'set_error_handler'
          7        SEND_VAL                                                 'corban_error_handler'
          8        SEND_VAL                                                 8
          9        DO_ICALL                                                 
   22    10        ASSIGN                                                   !0, null
   23    11        INIT_FCALL_BY_NAME                                       'cd'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
   24    14        INIT_FCALL_BY_NAME                                       'cd'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

Function %00cd%2Fin%2FPoDc1%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PoDc1
function name:  cd
number of ops:  5
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    7     4      > RETURN                                                   null

End of function %00cd%2Fin%2FPoDc1%3A4%240

Function corban_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PoDc1
function name:  corban_error_handler
number of ops:  22
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   12     3        ECHO                                                     '%3Cpre%3E'
   13     4        INIT_FCALL                                               'print_r'
          5        INIT_FCALL                                               'debug_backtrace'
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
   14    10        ECHO                                                     '%3C%2Fpre%3E'
   15    11        INIT_FCALL_BY_NAME                                       'cd'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0          
   16    14        INIT_FCALL_BY_NAME                                       'cd'
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
   17    17        INIT_FCALL_BY_NAME                                       'cd'
         18        SEND_VAR_EX                                              !2
         19        DO_FCALL                                      0          
   18    20      > RETURN                                                   <false>
   19    21*     > RETURN                                                   null

End of function corban_error_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.18 ms | 1405 KiB | 23 Q