3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ex = new \Exception('hello'); $class = get_class($ex); throw new $class('bye');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/lkheP
function name:  (null)
number of ops:  12
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        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        GET_CLASS                                        ~5      !0
          5        ASSIGN                                                   !1, ~5
    5     6        FETCH_CLASS                                   0  $7      !1
          7        NEW                                              $8      $7
          8        SEND_VAL_EX                                              'bye'
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $8
         11*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.11 ms | 1392 KiB | 13 Q