3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 10000; $b = 11111; $c = $a & $b; $r = $a ^ $b; var_dump(decbin($a), decbin($b), decbin($c), decbin($r), '---'); while ($c) { $shift = $c << 1; $c = $r & $shift; $r ^= $shift; var_dump(decbin($shift), decbin($c), decbin($r), $r, '---'); } var_dump($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 26
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 26
Branch analysis from position: 48
Branch analysis from position: 26
filename:       /in/TDrSi
function name:  (null)
number of ops:  52
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $r, !4 = $shift
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10000
    4     1        ASSIGN                                                   !1, 11111
    6     2        BW_AND                                           ~7      !0, !1
          3        ASSIGN                                                   !2, ~7
    7     4        BW_XOR                                           ~9      !0, !1
          5        ASSIGN                                                   !3, ~9
    9     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'decbin'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $11     
         10        SEND_VAR                                                 $11
         11        INIT_FCALL                                               'decbin'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $12     
         14        SEND_VAR                                                 $12
         15        INIT_FCALL                                               'decbin'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $13     
         18        SEND_VAR                                                 $13
         19        INIT_FCALL                                               'decbin'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $14     
         22        SEND_VAR                                                 $14
         23        SEND_VAL                                                 '---'
         24        DO_ICALL                                                 
   11    25      > JMP                                                      ->47
   12    26    >   SL                                               ~16     !2, 1
         27        ASSIGN                                                   !4, ~16
   13    28        BW_AND                                           ~18     !3, !4
         29        ASSIGN                                                   !2, ~18
   14    30        ASSIGN_OP                                    11          !3, !4
   15    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'decbin'
         33        SEND_VAR                                                 !4
         34        DO_ICALL                                         $21     
         35        SEND_VAR                                                 $21
         36        INIT_FCALL                                               'decbin'
         37        SEND_VAR                                                 !2
         38        DO_ICALL                                         $22     
         39        SEND_VAR                                                 $22
         40        INIT_FCALL                                               'decbin'
         41        SEND_VAR                                                 !3
         42        DO_ICALL                                         $23     
         43        SEND_VAR                                                 $23
         44        SEND_VAR                                                 !3
         45        SEND_VAL                                                 '---'
         46        DO_ICALL                                                 
   11    47    > > JMPNZ                                                    !2, ->26
   18    48    >   INIT_FCALL                                               'var_dump'
         49        SEND_VAR                                                 !3
         50        DO_ICALL                                                 
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.05 ms | 1400 KiB | 17 Q