3v4l.org

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

Function lperrorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/jlHuC
function name:  lpErrorHandler
number of ops:  18
compiled vars:  !0 = $no, !1 = $str, !2 = $file, !3 = $line, !4 = $varList
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      
    6     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !4
          7        DO_ICALL                                                 
    7     8        NEW                                              $6      '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          $6
    8    16*       RETURN                                                   <true>
    9    17*     > RETURN                                                   null

End of function lperrorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.06 ms | 1400 KiB | 19 Q