3v4l.org

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

Class Foo\Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.59 ms | 1393 KiB | 13 Q