3v4l.org

run code in 300+ PHP versions simultaneously
<?php function err_handler() { $s = new StdClass(); isset($s->bad); } set_error_handler('err_handler'); $f->good += 5 ; var_export($f); if(isset($f->bad)) exit(1); else exit(0);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/ucnDH
function name:  (null)
number of ops:  14
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'err_handler'
          2        DO_ICALL                                                 
   10     3        ASSIGN_OBJ_OP                                 1          !0, 'good'
          4        OP_DATA                                                  5
   12     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   14     8        ISSET_ISEMPTY_PROP_OBJ                                   !0, 'bad'
          9      > JMPZ                                                     ~4, ->12
   15    10    > > EXIT                                                     1
         11*       JMP                                                      ->13
   17    12    > > EXIT                                                     0
         13*     > RETURN                                                   1

Function err_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ucnDH
function name:  err_handler
number of ops:  6
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        ISSET_ISEMPTY_PROP_OBJ                           ~4      !0, 'bad'
          4        FREE                                                     ~4
    6     5      > RETURN                                                   null

End of function err_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.15 ms | 1400 KiB | 17 Q