3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $hola; public function setHola($name) { echo "I'm called"; $this->hola = $name; } } $a = new A; $a->hola = 'test';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qvjuM
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  12     0  E >   NEW                                              $1      :7
         1        DO_FCALL                                      0          
         2        ASSIGN                                                   !0, $1
  13     3        ASSIGN_OBJ                                               !0, 'hola'
         4        OP_DATA                                                  'test'
         5      > RETURN                                                   1

Class A:
Function sethola:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qvjuM
function name:  setHola
number of ops:  5
compiled vars:  !0 = $name
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E >   RECV                                             !0      
   7     1        ECHO                                                     'I%27m+called'
   8     2        ASSIGN_OBJ                                               'hola'
         3        OP_DATA                                                  !0
   9     4      > RETURN                                                   null

End of function sethola

End of class A.

Generated using Vulcan Logic Dumper, using php 7.4.0