3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace u{ class c2{function c2() { echo 'constructor2'; }}; $y = new c2; } namespace { class c1{function c1() { echo 'constructor1'; }}; $x = new c1; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GIYpp
function name:  (null)
number of ops:  7
compiled vars:  !0 = $y, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'u%5Cc2'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3        NEW                                              $5      'c1'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    9     6      > RETURN                                                   1

Class u\c2:
Function c2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GIYpp
function name:  c2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'constructor2'
          1      > RETURN                                                   null

End of function c2

End of class u\c2.

Class c1:
Function c1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GIYpp
function name:  c1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'constructor1'
          1      > RETURN                                                   null

End of function c1

End of class c1.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.81 ms | 1398 KiB | 13 Q