3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new Exception('Hello world'); } set_error_handler("exception_error_handler"); try { // try loading a file that does not have exif data: $results = @exif_read_data('test.txt', 0, true); } catch (Exception $e) { echo $e-> getMessage; // "We never get here..." };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3hkRQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $results, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'exception_error_handler'
          2        DO_ICALL                                                 
    9     3        BEGIN_SILENCE                                    ~3      
          4        INIT_FCALL_BY_NAME                                       'exif_read_data'
          5        SEND_VAL_EX                                              'test.txt'
          6        SEND_VAL_EX                                              0
          7        SEND_VAL_EX                                              <true>
          8        DO_FCALL                                      0  $4      
          9        END_SILENCE                                              ~3
         10        ASSIGN                                                   !0, $4
         11      > JMP                                                      ->15
   10    12  E > > CATCH                                       last         'Exception'
   11    13    >   FETCH_OBJ_R                                      ~6      !1, 'getMessage'
         14        ECHO                                                     ~6
   12    15    > > RETURN                                                   1

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

End of function exception_error_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.41 ms | 1396 KiB | 15 Q