3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = trim('88.99.241.121'); $arr = explode(".", $ip); foreach($arr as $p) { $arrBin[] = str_pad(decbin($p), 8, '0', STR_PAD_LEFT); } $arrBin6 = [ $arrBin[0] . $arrBin[1], $arrBin[2] . $arrBin[3] ]; foreach($arrBin6 as $p6) { $arr6[] = dechex(bindec($p6)); } print_r($arr); print_r($arrBin); print_r($arrBin6); print_r($arr6);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 23
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 23
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 34, Position 2 = 44
Branch analysis from position: 34
2 jumps found. (Code = 78) Position 1 = 35, Position 2 = 44
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
Branch analysis from position: 23
filename:       /in/r0r3W
function name:  (null)
number of ops:  58
compiled vars:  !0 = $ip, !1 = $arr, !2 = $p, !3 = $arrBin, !4 = $arrBin6, !5 = $p6, !6 = $arr6
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'trim'
          1        SEND_VAL                                                 '88.99.241.121'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    3     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '.'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !1, $9
    5     9      > FE_RESET_R                                       $11     !1, ->23
         10    > > FE_FETCH_R                                               $11, !2, ->23
    6    11    >   INIT_FCALL                                               'str_pad'
         12        INIT_FCALL                                               'decbin'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $13     
         15        SEND_VAR                                                 $13
         16        SEND_VAL                                                 8
         17        SEND_VAL                                                 '0'
         18        SEND_VAL                                                 0
         19        DO_ICALL                                         $14     
         20        ASSIGN_DIM                                               !3
         21        OP_DATA                                                  $14
    5    22      > JMP                                                      ->10
         23    >   FE_FREE                                                  $11
   10    24        FETCH_DIM_R                                      ~15     !3, 0
         25        FETCH_DIM_R                                      ~16     !3, 1
         26        CONCAT                                           ~17     ~15, ~16
         27        INIT_ARRAY                                       ~18     ~17
   11    28        FETCH_DIM_R                                      ~19     !3, 2
         29        FETCH_DIM_R                                      ~20     !3, 3
         30        CONCAT                                           ~21     ~19, ~20
         31        ADD_ARRAY_ELEMENT                                ~18     ~21
    9    32        ASSIGN                                                   !4, ~18
   14    33      > FE_RESET_R                                       $23     !4, ->44
         34    > > FE_FETCH_R                                               $23, !5, ->44
   15    35    >   INIT_FCALL                                               'dechex'
         36        INIT_FCALL                                               'bindec'
         37        SEND_VAR                                                 !5
         38        DO_ICALL                                         $25     
         39        SEND_VAR                                                 $25
         40        DO_ICALL                                         $26     
         41        ASSIGN_DIM                                               !6
         42        OP_DATA                                                  $26
   14    43      > JMP                                                      ->34
         44    >   FE_FREE                                                  $23
   18    45        INIT_FCALL                                               'print_r'
         46        SEND_VAR                                                 !1
         47        DO_ICALL                                                 
   19    48        INIT_FCALL                                               'print_r'
         49        SEND_VAR                                                 !3
         50        DO_ICALL                                                 
   20    51        INIT_FCALL                                               'print_r'
         52        SEND_VAR                                                 !4
         53        DO_ICALL                                                 
   21    54        INIT_FCALL                                               'print_r'
         55        SEND_VAR                                                 !6
         56        DO_ICALL                                                 
         57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.1 ms | 1400 KiB | 27 Q