3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { private $f; public function test() { var_dump($this->f & 1); var_dump($this->f & 0); } } $x = new x(); $x->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GrMjN
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'x'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class x:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GrMjN
function name:  test
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'f'
          2        BW_AND                                           ~1      ~0, 1
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_R                                      ~3      'f'
          7        BW_AND                                           ~4      ~3, 0
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    7    10      > RETURN                                                   null

End of function test

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1395 KiB | 15 Q