3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $type = Foo::class; $args = []; $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/D8RPZ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $type, !1 = $args, !2 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Foo'
    5     1        ASSIGN                                                   !1, <array>
    7     2        NEW                                              $5      'ReflectionClass'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $5
    8     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !2, 'newInstanceArgs'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.41 ms | 939 KiB | 16 Q