3v4l.org

run code in 500+ PHP versions simultaneously
<?php function _do_something(){} set_error_handler('_do_something'); $a["x"];//should trigger notice var_dump(error_get_last());//return null
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tcTvu
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        SEND_VAL                                                     '_do_something'
          2        DO_ICALL                                                     
    6     3        FETCH_DIM_R                                          ~2      !0, 'x'
          4        FREE                                                         ~2
    7     5        INIT_FCALL                                                   'var_dump'
          6        INIT_FCALL                                                   'error_get_last'
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Function _do_something:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tcTvu
function name:  _do_something
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                       null

End of function _do_something

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
235.82 ms | 2963 KiB | 16 Q