3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Teste\A; $teste = 'abc'; class A { public function __toString(){ return 'teste'; } } echo Teste\A\teste;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqkUU
function name:  (null)
number of ops:  5
compiled vars:  !0 = $teste
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abc'
    5     1        DECLARE_CLASS                                            'teste%5Ca%5Ca'
   11     2        FETCH_CONSTANT                                   ~2      'Teste%5CA%5CTeste%5CA%5Cteste'
          3        ECHO                                                     ~2
          4      > RETURN                                                   1

Class Teste\A\A:
Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqkUU
function name:  __toString
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'teste'
    8     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function __tostring

End of class Teste\A\A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.45 ms | 937 KiB | 14 Q