3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $m = bindec('101'); $t = bindec('100'); $r = (($m & $t == $t) ? true : false); var_dump($r); $t2 = bindec('010'); var_dump($m & $t2); $r = (($m & $t2 == $t2) ? true : false); var_dump($r);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
Branch analysis from position: 31
filename:       /in/ig3PN
function name:  (null)
number of ops:  37
compiled vars:  !0 = $m, !1 = $t, !2 = $r, !3 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'bindec'
          1        SEND_VAL                                                 '101'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    6     4        INIT_FCALL                                               'bindec'
          5        SEND_VAL                                                 '100'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    7     8        IS_EQUAL                                         ~8      !1, !1
          9        BW_AND                                           ~9      !0, ~8
         10      > JMPZ                                                     ~9, ->13
         11    >   QM_ASSIGN                                        ~10     <true>
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~10     <false>
         14    >   ASSIGN                                                   !2, ~10
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'bindec'
         19        SEND_VAL                                                 '010'
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !3, $13
   12    22        INIT_FCALL                                               'var_dump'
         23        BW_AND                                           ~15     !0, !3
         24        SEND_VAL                                                 ~15
         25        DO_ICALL                                                 
   13    26        IS_EQUAL                                         ~17     !3, !3
         27        BW_AND                                           ~18     !0, ~17
         28      > JMPZ                                                     ~18, ->31
         29    >   QM_ASSIGN                                        ~19     <true>
         30      > JMP                                                      ->32
         31    >   QM_ASSIGN                                        ~19     <false>
         32    >   ASSIGN                                                   !2, ~19
   15    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !2
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.22 ms | 1401 KiB | 17 Q