3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPUnit_Util_ErrorHandler { public static function handleError($errno, $errstr, $errfile, $errline) { throw new Exception; } } set_error_handler( array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL | E_STRICT ); $dom = new DOMDocument; $dom->saveXML('foo');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZX7Q
function name:  (null)
number of ops:  11
compiled vars:  !0 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'set_error_handler'
   12     1        SEND_VAL                                                 <array>
   13     2        SEND_VAL                                                 32767
          3        DO_ICALL                                                 
   16     4        NEW                                              $2      'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   17     7        INIT_METHOD_CALL                                         !0, 'saveXML'
          8        SEND_VAL_EX                                              'foo'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class PHPUnit_Util_ErrorHandler:
Function handleerror:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/ZZX7Q
function name:  handleError
number of ops:  8
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    7     4        NEW                                              $4      'Exception'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $4
    8     7*     > RETURN                                                   null

End of function handleerror

End of class PHPUnit_Util_ErrorHandler.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.24 ms | 1399 KiB | 15 Q