3v4l.org

run code in 300+ PHP versions simultaneously
<?php function find_words($in) { $len = strlen($in); if ($len < 2) { return $in; } // no state $upper = function ($c) { return 'A' <= $c && $c <= 'Z'; }; $lower = function ($c) { return 'a' <= $c && $c <= 'z'; }; $alpha = function ($c) use ($upper, $lower) { return $upper($c) || $lower($c); }; $num = function ($c) { return '0' <= $c && $c <= '9'; }; $alpha_num = function ($c) use ($alpha, $num) { return $alpha($c) || $num($c); }; // stream state $pos = 0; $char = $in[0]; $peek = function() use ($in, &$pos, $len) { if ($pos+1 >= $len) { return null; } return $in[$pos+1]; }; $next = function() use ($peek, &$pos, &$char) { $char = $peek(); $pos++; return $char !== null; }; // lex state $out = array(); $std_word = null; $upr_word = null; $num_word = null; $find_word = function () use (&$char, $alpha_num, $lower, $upper, $next, $peek, &$std_word, &$upr_word, &$num_word) { while (!$alpha_num($char)) { if (!$next()) { return null; } } if ($lower($char)) { return $std_word; // lowercase word } if ($upper($char)) { if ($upper($peek())) { // uppercase word return $upr_word; } return $std_word; // capitalized word } return $num_word; }; $upr_word = function() use (&$out, &$char, $next, $peek, $upper, $lower, $find_word) { $word = $char; while ($next() && $upper($char)) { if ($lower($peek())) { // start of capitalized word (e.g. FOOBar at B) break; } $word .= $char; } $out[] = $word; return $find_word; }; $std_word = function() use (&$out, &$char, $next, $lower, $find_word) { $word = $char; while ($next() && $lower($char)) { $word .= $char; } $out[] = $word; return $find_word; }; $num_word = function() use (&$out, &$char, $next, $num, $find_word) { $word = $char; while ($next() && $num($char)) { $word .= $char; } $out[] = $word; return $find_word; }; $state = $find_word; while ($state !== null) { $state = $state(); } return $out; } $samples = array( 'FooBar123', 'FooBAR123', 'FOOBar123', 'foo_bar_123', 'FOO_bar_123', 'FOO_Bar_123', 'foo_BAR_123', 'foo_Bar_123', 'Foo_bar_123', ); print_r(array_map(function ($name) { return array( 'name' => $name, 'words' => find_words($name), ); }, $samples));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tB33D
function name:  (null)
number of ops:  10
compiled vars:  !0 = $samples
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  103     0  E >   ASSIGN                                                   !0, <array>
  117     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A117%24b'
  122     4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function find_words:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 76
Branch analysis from position: 76
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 73
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 73
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 73
Branch analysis from position: 78
Branch analysis from position: 73
filename:       /in/tB33D
function name:  find_words
number of ops:  80
compiled vars:  !0 = $in, !1 = $len, !2 = $upper, !3 = $lower, !4 = $alpha, !5 = $num, !6 = $alpha_num, !7 = $pos, !8 = $char, !9 = $peek, !10 = $next, !11 = $out, !12 = $std_word, !13 = $upr_word, !14 = $num_word, !15 = $find_word, !16 = $state
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        STRLEN                                           ~17     !0
          2        ASSIGN                                                   !1, ~17
    6     3        IS_SMALLER                                               !1, 2
          4      > JMPZ                                                     ~19, ->6
    7     5    > > RETURN                                                   !0
   11     6    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A11%240'
          7        ASSIGN                                                   !2, ~20
   14     8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A14%241'
          9        ASSIGN                                                   !3, ~22
   17    10        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A17%242'
         11        BIND_LEXICAL                                             ~24, !2
         12        BIND_LEXICAL                                             ~24, !3
         13        ASSIGN                                                   !4, ~24
   20    14        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A20%243'
         15        ASSIGN                                                   !5, ~26
   23    16        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A23%244'
         17        BIND_LEXICAL                                             ~28, !4
         18        BIND_LEXICAL                                             ~28, !5
         19        ASSIGN                                                   !6, ~28
   28    20        ASSIGN                                                   !7, 0
   29    21        FETCH_DIM_R                                      ~31     !0, 0
         22        ASSIGN                                                   !8, ~31
   30    23        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A30%245'
         24        BIND_LEXICAL                                             ~33, !0
         25        BIND_LEXICAL                                             ~33, !7
         26        BIND_LEXICAL                                             ~33, !1
         27        ASSIGN                                                   !9, ~33
   36    28        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A36%246'
         29        BIND_LEXICAL                                             ~35, !9
         30        BIND_LEXICAL                                             ~35, !7
         31        BIND_LEXICAL                                             ~35, !8
         32        ASSIGN                                                   !10, ~35
   43    33        ASSIGN                                                   !11, <array>
   45    34        ASSIGN                                                   !12, null
   46    35        ASSIGN                                                   !13, null
   47    36        ASSIGN                                                   !14, null
   49    37        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A49%247'
         38        BIND_LEXICAL                                             ~41, !8
         39        BIND_LEXICAL                                             ~41, !6
         40        BIND_LEXICAL                                             ~41, !3
         41        BIND_LEXICAL                                             ~41, !2
         42        BIND_LEXICAL                                             ~41, !10
         43        BIND_LEXICAL                                             ~41, !9
         44        BIND_LEXICAL                                             ~41, !12
         45        BIND_LEXICAL                                             ~41, !13
         46        BIND_LEXICAL                                             ~41, !14
         47        ASSIGN                                                   !15, ~41
   67    48        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A67%248'
         49        BIND_LEXICAL                                             ~43, !11
         50        BIND_LEXICAL                                             ~43, !8
         51        BIND_LEXICAL                                             ~43, !10
         52        BIND_LEXICAL                                             ~43, !9
         53        BIND_LEXICAL                                             ~43, !2
         54        BIND_LEXICAL                                             ~43, !3
         55        BIND_LEXICAL                                             ~43, !15
         56        ASSIGN                                                   !13, ~43
   78    57        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A78%249'
         58        BIND_LEXICAL                                             ~45, !11
         59        BIND_LEXICAL                                             ~45, !8
         60        BIND_LEXICAL                                             ~45, !10
         61        BIND_LEXICAL                                             ~45, !3
         62        BIND_LEXICAL                                             ~45, !15
         63        ASSIGN                                                   !12, ~45
   86    64        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtB33D%3A86%24a'
         65        BIND_LEXICAL                                             ~47, !11
         66        BIND_LEXICAL                                             ~47, !8
         67        BIND_LEXICAL                                             ~47, !10
         68        BIND_LEXICAL                                             ~47, !5
         69        BIND_LEXICAL                                             ~47, !15
         70        ASSIGN                                                   !14, ~47
   95    71        ASSIGN                                                   !16, !15
   96    72      > JMP                                                      ->76
   97    73    >   INIT_DYNAMIC_CALL                                        !16
         74        DO_FCALL                                      0  $50     
         75        ASSIGN                                                   !16, $50
   96    76    >   TYPE_CHECK                                  1020          !16
         77      > JMPNZ                                                    ~52, ->73
   99    78    > > RETURN                                                   !11
  100    79*     > RETURN                                                   null

End of function find_words

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A11%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/tB33D
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        IS_SMALLER_OR_EQUAL                              ~1      'A', !0
          2      > JMPZ_EX                                          ~1      ~1, ->5
          3    >   IS_SMALLER_OR_EQUAL                              ~2      !0, 'Z'
          4        BOOL                                             ~1      ~2
          5    > > RETURN                                                   ~1
   13     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A11%240

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A14%241:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/tB33D
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        IS_SMALLER_OR_EQUAL                              ~1      'a', !0
          2      > JMPZ_EX                                          ~1      ~1, ->5
          3    >   IS_SMALLER_OR_EQUAL                              ~2      !0, 'z'
          4        BOOL                                             ~1      ~2
          5    > > RETURN                                                   ~1
   16     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A14%241

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A17%242:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/tB33D
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $c, !1 = $upper, !2 = $lower
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
   18     3        INIT_DYNAMIC_CALL                                        !1
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6      > JMPNZ_EX                                         ~4      $3, ->11
          7    >   INIT_DYNAMIC_CALL                                        !2
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $5      
         10        BOOL                                             ~4      $5
         11    > > RETURN                                                   ~4
   19    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A17%242

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A20%243:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/tB33D
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1        IS_SMALLER_OR_EQUAL                              ~1      '0', !0
          2      > JMPZ_EX                                          ~1      ~1, ->5
          3    >   IS_SMALLER_OR_EQUAL                              ~2      !0, '9'
          4        BOOL                                             ~1      ~2
          5    > > RETURN                                                   ~1
   22     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A20%243

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A23%244:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/tB33D
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $c, !1 = $alpha, !2 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
   24     3        INIT_DYNAMIC_CALL                                        !1
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6      > JMPNZ_EX                                         ~4      $3, ->11
          7    >   INIT_DYNAMIC_CALL                                        !2
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $5      
         10        BOOL                                             ~4      $5
         11    > > RETURN                                                   ~4
   25    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A23%244

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A30%245:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tB33D
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $in, !1 = $pos, !2 = $len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
   31     3        ADD                                              ~3      !1, 1
          4        IS_SMALLER_OR_EQUAL                                      !2, ~3
          5      > JMPZ                                                     ~4, ->7
   32     6    > > RETURN                                                   null
   34     7    >   ADD                                              ~5      !1, 1
          8        FETCH_DIM_R                                      ~6      !0, ~5
          9      > RETURN                                                   ~6
   35    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A30%245

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A36%246:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tB33D
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $peek, !1 = $pos, !2 = $char
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
   37     3        INIT_DYNAMIC_CALL                                        !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !2, $3
   38     6        PRE_INC                                                  !1
   39     7        TYPE_CHECK                                  1020  ~6      !2
          8      > RETURN                                                   ~6
   40     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A36%246

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A49%247:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 37
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/tB33D
function name:  {closure}
number of ops:  39
compiled vars:  !0 = $char, !1 = $alpha_num, !2 = $lower, !3 = $upper, !4 = $next, !5 = $peek, !6 = $std_word, !7 = $upr_word, !8 = $num_word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
          3        BIND_STATIC                                              !3
          4        BIND_STATIC                                              !4
          5        BIND_STATIC                                              !5
          6        BIND_STATIC                                              !6
          7        BIND_STATIC                                              !7
          8        BIND_STATIC                                              !8
   50     9      > JMP                                                      ->15
   51    10    >   INIT_DYNAMIC_CALL                                        !4
         11        DO_FCALL                                      0  $9      
         12        BOOL_NOT                                         ~10     $9
         13      > JMPZ                                                     ~10, ->15
   52    14    > > RETURN                                                   null
   50    15    >   INIT_DYNAMIC_CALL                                        !1
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $11     
         18        BOOL_NOT                                         ~12     $11
         19      > JMPNZ                                                    ~12, ->10
   55    20    >   INIT_DYNAMIC_CALL                                        !2
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $13     
         23      > JMPZ                                                     $13, ->25
   56    24    > > RETURN                                                   !6
   58    25    >   INIT_DYNAMIC_CALL                                        !3
         26        SEND_VAR_EX                                              !0
         27        DO_FCALL                                      0  $14     
         28      > JMPZ                                                     $14, ->37
   59    29    >   INIT_DYNAMIC_CALL                                        !3
         30        INIT_DYNAMIC_CALL                                        !5
         31        DO_FCALL                                      0  $15     
         32        SEND_VAR_NO_REF_EX                                       $15
         33        DO_FCALL                                      0  $16     
         34      > JMPZ                                                     $16, ->36
   60    35    > > RETURN                                                   !7
   62    36    > > RETURN                                                   !6
   64    37    > > RETURN                                                   !8
   65    38*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A49%247

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A67%248:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 9
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
Branch analysis from position: 24
Branch analysis from position: 24
filename:       /in/tB33D
function name:  {closure}
number of ops:  29
compiled vars:  !0 = $out, !1 = $char, !2 = $next, !3 = $peek, !4 = $upper, !5 = $lower, !6 = $find_word, !7 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   67     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
          3        BIND_STATIC                                              !3
          4        BIND_STATIC                                              !4
          5        BIND_STATIC                                              !5
          6        BIND_STATIC                                              !6
   68     7        ASSIGN                                                   !7, !1
   69     8      > JMP                                                      ->17
   70     9    >   INIT_DYNAMIC_CALL                                        !5
         10        INIT_DYNAMIC_CALL                                        !3
         11        DO_FCALL                                      0  $9      
         12        SEND_VAR_NO_REF_EX                                       $9
         13        DO_FCALL                                      0  $10     
         14      > JMPZ                                                     $10, ->16
   71    15    > > JMP                                                      ->25
   73    16    >   ASSIGN_OP                                     8          !7, !1
   69    17    >   INIT_DYNAMIC_CALL                                        !2
         18        DO_FCALL                                      0  $12     
         19      > JMPZ_EX                                          ~13     $12, ->24
         20    >   INIT_DYNAMIC_CALL                                        !4
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0  $14     
         23        BOOL                                             ~13     $14
         24    > > JMPNZ                                                    ~13, ->9
   75    25    >   ASSIGN_DIM                                               !0
         26        OP_DATA                                                  !7
   76    27      > RETURN                                                   !6
   77    28*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A67%248

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A78%249:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
Branch analysis from position: 15
Branch analysis from position: 15
filename:       /in/tB33D
function name:  {closure}
number of ops:  20
compiled vars:  !0 = $out, !1 = $char, !2 = $next, !3 = $lower, !4 = $find_word, !5 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   78     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
          3        BIND_STATIC                                              !3
          4        BIND_STATIC                                              !4
   79     5        ASSIGN                                                   !5, !1
   80     6      > JMP                                                      ->8
   81     7    >   ASSIGN_OP                                     8          !5, !1
   80     8    >   INIT_DYNAMIC_CALL                                        !2
          9        DO_FCALL                                      0  $8      
         10      > JMPZ_EX                                          ~9      $8, ->15
         11    >   INIT_DYNAMIC_CALL                                        !3
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $10     
         14        BOOL                                             ~9      $10
         15    > > JMPNZ                                                    ~9, ->7
   83    16    >   ASSIGN_DIM                                               !0
         17        OP_DATA                                                  !5
   84    18      > RETURN                                                   !4
   85    19*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A78%249

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A86%24a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
Branch analysis from position: 15
Branch analysis from position: 15
filename:       /in/tB33D
function name:  {closure}
number of ops:  20
compiled vars:  !0 = $out, !1 = $char, !2 = $next, !3 = $num, !4 = $find_word, !5 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   86     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
          3        BIND_STATIC                                              !3
          4        BIND_STATIC                                              !4
   87     5        ASSIGN                                                   !5, !1
   88     6      > JMP                                                      ->8
   89     7    >   ASSIGN_OP                                     8          !5, !1
   88     8    >   INIT_DYNAMIC_CALL                                        !2
          9        DO_FCALL                                      0  $8      
         10      > JMPZ_EX                                          ~9      $8, ->15
         11    >   INIT_DYNAMIC_CALL                                        !3
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $10     
         14        BOOL                                             ~9      $10
         15    > > JMPNZ                                                    ~9, ->7
   91    16    >   ASSIGN_DIM                                               !0
         17        OP_DATA                                                  !5
   92    18      > RETURN                                                   !4
   93    19*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtB33D%3A86%24a

Function %00%7Bclosure%7D%2Fin%2FtB33D%3A117%24b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tB33D
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  117     0  E >   RECV                                             !0      
  119     1        INIT_ARRAY                                       ~1      !0, 'name'
  120     2        INIT_FCAL

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.6 ms | 1428 KiB | 17 Q