3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = explode (":", "FF:01:48:00:011E:0022:06BC:0000:000A:0784" ); foreach ($parts as $part) { echo base_convert($part, 16, 2) . PHP_EOL; //echo bindec(hex2bin("0x". $part)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/gC3bR
function name:  (null)
number of ops:  17
compiled vars:  !0 = $parts, !1 = $part
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%3A'
          2        SEND_VAL                                                 'FF%3A01%3A48%3A00%3A011E%3A0022%3A06BC%3A0000%3A000A%3A0784'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5      > FE_RESET_R                                       $4      !0, ->15
          6    > > FE_FETCH_R                                               $4, !1, ->15
    7     7    >   INIT_FCALL                                               'base_convert'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 16
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $5      
         12        CONCAT                                           ~6      $5, '%0A'
         13        ECHO                                                     ~6
    5    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $4
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.23 ms | 1395 KiB | 17 Q