3v4l.org

run code in 300+ PHP versions simultaneously
<?php function eh($type, $message, $file, $line, $context) { echo (int) isset($context['GLOBALS']), $message; } set_error_handler('eh'); $a->b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nMjOZ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'eh'
          2        DO_ICALL                                                 
   10     3        FETCH_OBJ_R                                      ~2      !0, 'b'
          4        FREE                                                     ~2
          5      > RETURN                                                   1

Function eh:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nMjOZ
function name:  eh
number of ops:  10
compiled vars:  !0 = $type, !1 = $message, !2 = $file, !3 = $line, !4 = $context
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
    5     5        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !4, 'GLOBALS'
          6        CAST                                          4  ~6      ~5
          7        ECHO                                                     ~6
          8        ECHO                                                     !1
    6     9      > RETURN                                                   null

End of function eh

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.11 ms | 1395 KiB | 15 Q