3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new \Exception(null, null); $o = new \ReflectionObject($e); $p = $o->getProperty('previous'); $p->setAccessible(true); $p->setValue($e, $e); throw $e;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/OIEhL
function name:  (null)
number of ops:  22
compiled vars:  !0 = $e, !1 = $o, !2 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'Exception'
          1        SEND_VAL_EX                                              null
          2        SEND_VAL_EX                                              null
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
    4     5        NEW                                              $6      'ReflectionObject'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
    5     9        INIT_METHOD_CALL                                         !1, 'getProperty'
         10        SEND_VAL_EX                                              'previous'
         11        DO_FCALL                                      0  $9      
         12        ASSIGN                                                   !2, $9
    6    13        INIT_METHOD_CALL                                         !2, 'setAccessible'
         14        SEND_VAL_EX                                              <true>
         15        DO_FCALL                                      0          
    7    16        INIT_METHOD_CALL                                         !2, 'setValue'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0          
    8    20      > THROW                                         0          !0
         21*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.81 ms | 1394 KiB | 13 Q