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 { $zero = 0 / 0; } catch (Throwable $thrown) { var_dump((string) $thorwn); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/57ODt
function name:  (null)
number of ops:  14
compiled vars:  !0 = $zero, !1 = $thrown, !2 = $thorwn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
    4     2        SEND_VAL                                                 ~3
          3        SEND_VAL                                                 -1
    2     4        DO_ICALL                                                 
    6     5        DIV                                              ~5      0, 0
          6        ASSIGN                                                   !0, ~5
          7      > JMP                                                      ->13
    7     8  E > > CATCH                                       last         'Throwable'
    8     9    >   INIT_FCALL                                               'var_dump'
         10        CAST                                          6  ~7      !2
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
   10    13    > > 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/57ODt
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:
138.26 ms | 1000 KiB | 15 Q