3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { private $p = 'Yes!'; function foo() { // valid code echo $this->$this; } function __toString() { return 'p'; } } (new x)->foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K60Kl
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                                'x'
   16     1        NEW                                                  $0      'x'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'foo'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class x:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K60Kl
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   FETCH_THIS                                           ~0      
          1        FETCH_OBJ_R                                          ~1      ~0
          2        ECHO                                                         ~1
    9     3      > RETURN                                                       null

End of function foo

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

End of function __tostring

End of class x.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
138.2 ms | 1465 KiB | 13 Q