3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends ArrayObject { function __construct() {} } new Foo(); var_dump((new ReflectionClass('Foo'))->isInternal()); (new ReflectionClass('Foo'))->newInstanceWithoutConstructor();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Fd1e
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $0      'Foo'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
    8     3        INIT_FCALL                                               'var_dump'
          4        NEW                                              $2      'ReflectionClass'
          5        SEND_VAL_EX                                              'Foo'
          6        DO_FCALL                                      0          
          7        INIT_METHOD_CALL                                         $2, 'isInternal'
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
    9    11        NEW                                              $6      'ReflectionClass'
         12        SEND_VAL_EX                                              'Foo'
         13        DO_FCALL                                      0          
         14        INIT_METHOD_CALL                                         $6, 'newInstanceWithoutConstructor'
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Fd1e
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.37 ms | 1395 KiB | 15 Q