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 bindec(hex2bin("0x". $part)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/tPDEf
function name:  (null)
number of ops:  18
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, ->16
          6    > > FE_FETCH_R                                               $4, !1, ->16
    6     7    >   INIT_FCALL                                               'bindec'
          8        INIT_FCALL                                               'hex2bin'
          9        CONCAT                                           ~5      '0x', !1
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
    5    15      > JMP                                                      ->6
         16    >   FE_FREE                                                  $4
    7    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.76 ms | 1395 KiB | 19 Q