3v4l.org

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

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

End of function setordercount

End of class Menu.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
141.28 ms | 474 KiB | 7 Q