3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bitmask = bindec('0101') . "\n"; printf("%b", $bitmask); $bitmask |= bindec('0010'); printf("%b", $bitmask); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fuRFV
function name:  (null)
number of ops:  18
compiled vars:  !0 = $bitmask
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bindec'
          1        SEND_VAL                                                 '0101'
          2        DO_ICALL                                         $1      
          3        CONCAT                                           ~2      $1, '%0A'
          4        ASSIGN                                                   !0, ~2
    5     5        INIT_FCALL                                               'printf'
          6        SEND_VAL                                                 '%25b'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'bindec'
         10        SEND_VAL                                                 '0010'
         11        DO_ICALL                                         $5      
         12        ASSIGN_OP                                     9          !0, $5
    9    13        INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 '%25b'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.97 ms | 1394 KiB | 17 Q