3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person{ private $name = "aku"; public function __construct(){ } public function nama($name){ $this->name = $name; } } $orang = new Person; echo $this->nama; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o7Wfv
function name:  (null)
number of ops:  7
compiled vars:  !0 = $orang
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Person'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        FETCH_THIS                                       $4      
          4        FETCH_OBJ_R                                      ~5      $4, 'nama'
          5        ECHO                                                     ~5
   17     6      > RETURN                                                   1

Class Person:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o7Wfv
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function __construct

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

End of function nama

End of class Person.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1394 KiB | 13 Q