3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; class Boo {} namespace B; class Foo { } $f = new Foo(); var_dump(get_class($f));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TEQgG
function name:  (null)
number of ops:  10
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'B%5CFoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_NS_FCALL_BY_NAME                                    'B%5Cvar_dump'
          4        INIT_NS_FCALL_BY_NAME                                    'B%5Cget_class'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class A\Boo: [no user functions]
Class B\Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.17 ms | 1394 KiB | 17 Q