3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ex = new \Exception('hello', 500); $class = get_class($ex); throw new $class('bye', 500);
based on lkheP
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/QiMCS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $ex, !1 = $class
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :-6
         1        SEND_VAL_EX                                              'hello'
         2        SEND_VAL_EX                                              500
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !0, $2
   4     5        INIT_FCALL                                               'get_class'
         6        SEND_VAR                                                 !0
         7        DO_ICALL                                         $5      
         8        ASSIGN                                                   !1, $5
   5     9        FETCH_CLASS                                 512  :7      !1
        10        NEW                                              $8      :7
        11        SEND_VAL_EX                                              'bye'
        12        SEND_VAL_EX                                              500
        13        DO_FCALL                                      0          
        14      > THROW                                         0          $8
        15*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0