3v4l.org

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

Class Person:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M1n9o
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     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/M1n9o
function name:  nama
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'name'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function nama

End of class Person.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.61 ms | 1394 KiB | 13 Q