3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=61759 namespace A; class C { function foo() { echo "42\n"; } } namespace B; class_alias('\A\C', '\B\C'); $c = new C;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tDnKN
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'B%5Cclass_alias'
          1        SEND_VAL_EX                                              '%5CA%5CC'
          2        SEND_VAL_EX                                              '%5CB%5CC'
          3        DO_FCALL                                      0          
    9     4        NEW                                              $2      'B%5CC'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
          7      > RETURN                                                   1

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

End of function foo

End of class A\C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.52 ms | 1394 KiB | 15 Q