3v4l.org

run code in 300+ PHP versions simultaneously
<?php function findFamily($n) { $numbers = str_split($n); $combos = array(); $count = count($numbers); for($i = 0; $i < $count; $i++) { $result = ''; foreach($numbers as $number) $result .= $number; $value = $numbers[$i]; unset($numbers[$i]); $numbers[] = $value; $combos[] = $result; } } print_r(FindFamily(12)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jPI9O
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'findfamily'
          2        SEND_VAL                                                 12
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   17     6      > RETURN                                                   1

Function findfamily:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
Branch analysis from position: 10
Branch analysis from position: 15
filename:       /in/jPI9O
function name:  findFamily
number of ops:  27
compiled vars:  !0 = $n, !1 = $numbers, !2 = $combos, !3 = $count, !4 = $i, !5 = $result, !6 = $number, !7 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !1, $8
    4     5        ASSIGN                                                   !2, <array>
    5     6        COUNT                                            ~11     !1
          7        ASSIGN                                                   !3, ~11
    6     8        ASSIGN                                                   !4, 0
          9      > JMP                                                      ->24
    7    10    >   ASSIGN                                                   !5, ''
    8    11      > FE_RESET_R                                       $15     !1, ->15
         12    > > FE_FETCH_R                                               $15, !6, ->15
         13    >   ASSIGN_OP                                     8          !5, !6
         14      > JMP                                                      ->12
         15    >   FE_FREE                                                  $15
    9    16        FETCH_DIM_R                                      ~17     !1, !4
         17        ASSIGN                                                   !7, ~17
   10    18        UNSET_DIM                                                !1, !4
   11    19        ASSIGN_DIM                                               !1
         20        OP_DATA                                                  !7
   12    21        ASSIGN_DIM                                               !2
         22        OP_DATA                                                  !5
    6    23        PRE_INC                                                  !4
         24    >   IS_SMALLER                                               !4, !3
         25      > JMPNZ                                                    ~22, ->10
   14    26    > > RETURN                                                   null

End of function findfamily

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.32 ms | 1403 KiB | 18 Q