3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $stuff = ''; private function __construct($foo) { $this->stuff = $foo; } public function outstuff() { echo $this->stuff; } } $bar = new foo('hello'); $bar->outstuff();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ug2Iq
function name:  (null)
number of ops:  7
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'foo'
          1        SEND_VAL_EX                                              'hello'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   21     4        INIT_METHOD_CALL                                         !0, 'outstuff'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ug2Iq
function name:  __construct
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'stuff'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function __construct

Function outstuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ug2Iq
function name:  outstuff
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_OBJ_R                                      ~0      'stuff'
          1        ECHO                                                     ~0
   14     2      > RETURN                                                   null

End of function outstuff

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.39 ms | 1385 KiB | 13 Q