3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function setBob($bob) { $this->bob = $bob; } public function getBob() { return $this->bob; } } $foo = new Foo(); $foo->setBob('bobby'); echo $foo->getBob();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChHNG
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'setBob'
          4        SEND_VAL_EX                                              'bobby'
          5        DO_FCALL                                      0          
   19     6        INIT_METHOD_CALL                                         !0, 'getBob'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

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

End of function setbob

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

End of function getbob

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.42 ms | 1394 KiB | 13 Q