3v4l.org

run code in 500+ 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 = 14
Branch analysis from position: 10
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/ucnDH
function name:  (null)
number of ops:  18
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, ->14
   15    10    > > INIT_FCALL                                                   'exit'
         11*       SEND_VAL                                                     1
         12*       DO_ICALL                                                     
   14    13*       JMP                                                          ->17
   17    14    > > INIT_FCALL                                                   'exit'
         15*       SEND_VAL                                                     0
         16*       DO_ICALL                                                     
         17*     > 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.5.0


preferences:
177.35 ms | 2819 KiB | 16 Q