3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestIgor { public function __construct() { throw new \RuntimeException("test"); } } $r = new ReflectionClass("TestIgor"); return $r->newInstanceWithoutConstructor();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FJCLv
function name:  (null)
number of ops:  8
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'ReflectionClass'
          1        SEND_VAL_EX                                              'TestIgor'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   11     4        INIT_METHOD_CALL                                         !0, 'newInstanceWithoutConstructor'
          5        DO_FCALL                                      0  $4      
          6      > RETURN                                                   $4
          7*     > RETURN                                                   1

Class TestIgor:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/FJCLv
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $0      'RuntimeException'
          1        SEND_VAL_EX                                              'test'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $0
    7     4*     > RETURN                                                   null

End of function __construct

End of class TestIgor.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.78 ms | 1397 KiB | 13 Q