3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ex = new \Exception('hello', 500); $class = get_class($ex); throw new $class('bye', 500);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/QiMCS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $ex, !1 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'Exception'
          1        SEND_VAL_EX                                              'hello'
          2        SEND_VAL_EX                                              500
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5        GET_CLASS                                        ~5      !0
          6        ASSIGN                                                   !1, ~5
    5     7        FETCH_CLASS                                   0  $7      !1
          8        NEW                                              $8      $7
          9        SEND_VAL_EX                                              'bye'
         10        SEND_VAL_EX                                              500
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $8
         13*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.69 ms | 1393 KiB | 13 Q