3v4l.org

run code in 300+ PHP versions simultaneously
<?php function eh($type, $message, $file, $line, $context) { throw new Exception(); } set_error_handler('eh'); $a->b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8prmt
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 = 108) Position 1 = -2
filename:       /in/8prmt
function name:  eh
number of ops:  9
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        NEW                                              $5      'Exception'
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $5
    6     8*     > RETURN                                                   null

End of function eh

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.09 ms | 1394 KiB | 15 Q