3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class Foo { } } namespace B { $foo = new \A\Foo; $class = new \ReflectionClass($foo); echo $class->getShortName(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HeHVN
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'A%5CFoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        NEW                                              $5      'ReflectionClass'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
   13     7        INIT_METHOD_CALL                                         !1, 'getShortName'
          8        DO_FCALL                                      0  $8      
          9        ECHO                                                     $8
   14    10      > RETURN                                                   1

Class A\Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.61 ms | 1392 KiB | 13 Q