3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UberException extends Exception { public function __construct() { $refTrace = new ReflectionProperty('Exception', 'trace'); $refTrace->setAccessible(true); $refTrace->setValue($this, array('data')); } } throw new UberException();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/vuDfE
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $0      'UberException'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
          3*     > RETURN                                                   1

Class UberException:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vuDfE
function name:  __construct
number of ops:  14
compiled vars:  !0 = $refTrace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'ReflectionProperty'
          1        SEND_VAL_EX                                              'Exception'
          2        SEND_VAL_EX                                              'trace'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    8     5        INIT_METHOD_CALL                                         !0, 'setAccessible'
          6        SEND_VAL_EX                                              <true>
          7        DO_FCALL                                      0          
    9     8        INIT_METHOD_CALL                                         !0, 'setValue'
          9        FETCH_THIS                                       $5      
         10        SEND_VAR_EX                                              $5
         11        SEND_VAL_EX                                              <array>
         12        DO_FCALL                                      0          
   10    13      > RETURN                                                   null

End of function __construct

End of class UberException.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.7 ms | 1393 KiB | 13 Q