3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyObj { public $member = 'sad'; public function setMember($emotion) { $this->member = $emotion; } } (new MyObj())->setMember('happy');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6iSU8
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $0      'MyObj'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'setMember'
          3        SEND_VAL_EX                                              'happy'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function setmember

End of class MyObj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.84 ms | 1384 KiB | 13 Q