3v4l.org

run code in 300+ PHP versions simultaneously
<?php // "FF:01:48:00:011E:0022:06BC:0000:000A:0784" $parts = explode (":", "FF:00:41:02:0041:0075:0A75:0001:002B:0A2D "); foreach ($parts as $part) { echo bindec(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 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/veB5r
function name:  (null)
number of ops:  20
compiled vars:  !0 = $parts, !1 = $part
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%3A'
          2        SEND_VAL                                                 'FF%3A00%3A41%3A02%3A0041%3A0075%3A0A75%3A0001%3A002B%3A0A2D+'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    7     5      > FE_RESET_R                                       $4      !0, ->18
          6    > > FE_FETCH_R                                               $4, !1, ->18
    9     7    >   INIT_FCALL                                               'bindec'
          8        INIT_FCALL                                               'base_convert'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 16
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      $6, '%0A'
         16        ECHO                                                     ~7
    7    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $4
   11    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.27 ms | 1395 KiB | 19 Q