3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($val) { if($val & 16) { echo '16'; } if($val & 8) { echo '8'; } if($val & 31) { echo '31'; } if($val & 7) { echo '7'; } } test(8 ^ 16);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G9cTm
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 24
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 10
Branch analysis from position: 7
Branch analysis from position: 4
filename:       /in/G9cTm
function name:  test
number of ops:  14
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        BW_AND                                           ~1      !0, 16
          2      > JMPZ                                                     ~1, ->4
    4     3    >   ECHO                                                     '16'
    6     4    >   BW_AND                                           ~2      !0, 8
          5      > JMPZ                                                     ~2, ->7
    7     6    >   ECHO                                                     '8'
    9     7    >   BW_AND                                           ~3      !0, 31
          8      > JMPZ                                                     ~3, ->10
   10     9    >   ECHO                                                     '31'
   12    10    >   BW_AND                                           ~4      !0, 7
         11      > JMPZ                                                     ~4, ->13
   13    12    >   ECHO                                                     '7'
   15    13    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1389 KiB | 14 Q