3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace app\test { class A{} } namespace { $a = new app\test\A; $name = 'A'; $fullName = "app\\test\\{$name}"; $a = new $fullName(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0sQmS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $name, !2 = $fullName
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $3      'app%5Ctest%5CA'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $3
    8     3        ASSIGN                                                       !1, 'A'
    9     4        NOP                                                          
          5        FAST_CONCAT                                          ~7      'app%5Ctest%5C', !1
          6        ASSIGN                                                       !2, ~7
   10     7        FETCH_CLASS                                       0  $9      !2
          8        NEW                                                  $10     $9
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !0, $10
   11    11      > RETURN                                                       1

Class app\test\A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.74 ms | 2014 KiB | 13 Q