3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Teste\A; const 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/2sPmB
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'Teste%5CA%5Cteste', 'abc'
    5     1        DECLARE_CLASS                                            'teste%5Ca%5Ca'
   11     2        FETCH_CONSTANT                                   ~0      'Teste%5CA%5CTeste%5CA%5Cteste'
          3        ECHO                                                     ~0
          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/2sPmB
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:
174.39 ms | 1432 KiB | 13 Q