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, $m&$t); $t2 = bindec('010'); $r = (($m & $t2) == $t2) ? true : false; var_dump($r,$m&$t2);
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 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
Branch analysis from position: 29
filename:       /in/Ak3gv
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        BW_AND                                           ~8      !0, !1
          9        IS_EQUAL                                                 !1, ~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        BW_AND                                           ~12     !0, !1
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'bindec'
         21        SEND_VAL                                                 '010'
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !3, $14
   12    24        BW_AND                                           ~16     !0, !3
         25        IS_EQUAL                                                 !3, ~16
         26      > JMPZ                                                     ~17, ->29
         27    >   QM_ASSIGN                                        ~18     <true>
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~18     <false>
         30    >   ASSIGN                                                   !2, ~18
   14    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !2
         33        BW_AND                                           ~20     !0, !3
         34        SEND_VAL                                                 ~20
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.42 ms | 1396 KiB | 17 Q