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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.88 ms | 1400 KiB | 17 Q