3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $type = Foo::class; $reflection = new \ReflectionClass($type); var_dump($reflection->newInstanceArgs($args));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/57tXp
function name:  (null)
number of ops:  12
compiled vars:  !0 = $type, !1 = $reflection, !2 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Foo'
    6     1        NEW                                              $4      'ReflectionClass'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !1, 'newInstanceArgs'
          7        SEND_VAR_EX                                              !2
          8        DO_FCALL                                      0  $7      
          9        SEND_VAR                                                 $7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.96 ms | 1394 KiB | 15 Q