3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ModeSwitcher { const MODEL_ALL_MEMBERS = 0b1; const MODE_SINGLE_MEMBER = 0b01; const MODE_ALL_TYPES = 0b001; const MODE_SINGLE_TYPE = 0b0001; private $mode; public function __construct() { $this->mode = MODEL_ALL_MEMBERS | MODE_SINGLE_MEMBER; } function isMode($mode) { } } $a = new ModeSwitcher(); $a->isMode(ModeSwitcher::MODEL_ALL_MEMBERS);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TCTss
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'ModeSwitcher'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'isMode'
          4        SEND_VAL_EX                                              1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class ModeSwitcher:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TCTss
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_CONSTANT                                   ~1      'MODEL_ALL_MEMBERS'
          1        FETCH_CONSTANT                                   ~2      'MODE_SINGLE_MEMBER'
          2        BW_OR                                            ~3      ~1, ~2
          3        ASSIGN_OBJ                                               'mode'
          4        OP_DATA                                                  ~3
   16     5      > RETURN                                                   null

End of function __construct

Function ismode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TCTss
function name:  isMode
number of ops:  2
compiled vars:  !0 = $mode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   21     1      > RETURN                                                   null

End of function ismode

End of class ModeSwitcher.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.05 ms | 1393 KiB | 13 Q