3v4l.org

run code in 300+ PHP versions simultaneously
<?php function lpErrorHandler($no,$str,$file,$line) { echo $no,$str,$file,$line; throw new ErrorException($str,0,$no,$file,$line); } set_error_handler("lpExceptionHandler"); a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZF0gT
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'lpExceptionHandler'
          2        DO_ICALL                                                 
   10     3        INIT_FCALL_BY_NAME                                       'a'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function lperrorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/ZF0gT
function name:  lpErrorHandler
number of ops:  17
compiled vars:  !0 = $no, !1 = $str, !2 = $file, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        ECHO                                                     !0
          5        ECHO                                                     !1
          6        ECHO                                                     !2
          7        ECHO                                                     !3
    5     8        NEW                                              $4      'ErrorException'
          9        SEND_VAR_EX                                              !1
         10        SEND_VAL_EX                                              0
         11        SEND_VAR_EX                                              !0
         12        SEND_VAR_EX                                              !2
         13        SEND_VAR_EX                                              !3
         14        DO_FCALL                                      0          
         15      > THROW                                         0          $4
    6    16*     > RETURN                                                   null

End of function lperrorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.17 ms | 1395 KiB | 15 Q