3v4l.org

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

Class Foo\C: [no user functions]
Class D: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.26 ms | 1394 KiB | 15 Q