3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $code, string $message, string $file, int $line) : never { throw new ErrorException($message, $code, E_NOTICE, $file, $line); }, ~0); try { include __DIR__; } catch (Throwable $thrown) { var_dump((string) $thrown); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B8DQp
function name:  (null)
number of ops:  13
compiled vars:  !0 = $thrown
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
    4     2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 -1
    2     4        DO_ICALL                                                 
    6     5        INCLUDE_OR_EVAL                                          '%2Fin', INCLUDE
          6      > JMP                                                      ->12
    7     7  E > > CATCH                                       last         'Throwable'
    8     8    >   INIT_FCALL                                               'var_dump'
          9        CAST                                          6  ~4      !0
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
   10    12    > > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/B8DQp
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $code, !1 = $message, !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      
    3     4        NEW                                              $4      'ErrorException'
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              8
          8        SEND_VAR_EX                                              !2
          9        SEND_VAR_EX                                              !3
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $4
    4    12*     > VERIFY_NEVER_TYPE                                        

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.51 ms | 1007 KiB | 15 Q