3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = '-9 Cycles 3 Temperature Levels Steam Sanitizet+ -Sensor Dry | ALSO AVAILABLE (PRICES MAY VARY) |- White - 1258843 - DVE45R6100W {+ Platinum - 1501 525 - DVE45R6100P desirable: 1258843 DVE45R6100W'; foreach (explode(' ', $str) as $word) { $length = strlen($word); if ($length >= 4 && $length <= 20 && !isset($result[$word]) && ctype_alnum($word) && !ctype_alpha($word) && $word === strtoupper($word) ) { $result[$word] = $word; } } var_export(array_values($result));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 38
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 38
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
2 jumps found. (Code = 46) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 37
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 37
Branch analysis from position: 34
Branch analysis from position: 28
Branch analysis from position: 22
Branch analysis from position: 17
Branch analysis from position: 13
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
filename:       /in/eImrC
function name:  (null)
number of ops:  46
compiled vars:  !0 = $str, !1 = $word, !2 = $length, !3 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '-9+Cycles+3+Temperature+Levels+Steam+Sanitizet%2B+-Sensor+Dry+%7C+ALSO+AVAILABLE+%28PRICES+MAY+VARY%29+%7C-+White+-+1258843+-+DVE45R6100W+%7B%2B+Platinum+-+1501+525+-+DVE45R6100P+desirable%3A+1258843+DVE45R6100W'
    5     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '+'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $5      
          5      > FE_RESET_R                                           $6      $5, ->38
          6    > > FE_FETCH_R                                                   $6, !1, ->38
    6     7    >   STRLEN                                               ~7      !1
          8        ASSIGN                                                       !2, ~7
    7     9        IS_SMALLER_OR_EQUAL                                  ~9      4, !2
         10      > JMPZ_EX                                              ~9      ~9, ->13
    8    11    >   IS_SMALLER_OR_EQUAL                                  ~10     !2, 20
         12        BOOL                                                 ~9      ~10
         13    > > JMPZ_EX                                              ~9      ~9, ->17
    9    14    >   ISSET_ISEMPTY_DIM_OBJ                             0  ~11     !3, !1
         15        BOOL_NOT                                             ~12     ~11
         16        BOOL                                                 ~9      ~12
         17    > > JMPZ_EX                                              ~9      ~9, ->22
   10    18    >   INIT_FCALL                                                   'ctype_alnum'
         19        SEND_VAR                                                     !1
         20        DO_ICALL                                             $13     
         21        BOOL                                                 ~9      $13
         22    > > JMPZ_EX                                              ~9      ~9, ->28
   11    23    >   INIT_FCALL                                                   'ctype_alpha'
         24        SEND_VAR                                                     !1
         25        DO_ICALL                                             $14     
         26        BOOL_NOT                                             ~15     $14
         27        BOOL                                                 ~9      ~15
         28    > > JMPZ_EX                                              ~9      ~9, ->34
   12    29    >   INIT_FCALL                                                   'strtoupper'
         30        SEND_VAR                                                     !1
         31        DO_ICALL                                             $16     
         32        IS_IDENTICAL                                         ~17     !1, $16
         33        BOOL                                                 ~9      ~17
         34    > > JMPZ                                                         ~9, ->37
   14    35    >   ASSIGN_DIM                                                   !3, !1
         36        OP_DATA                                                      !1
    5    37    > > JMP                                                          ->6
         38    >   FE_FREE                                                      $6
   17    39        INIT_FCALL                                                   'var_export'
         40        INIT_FCALL                                                   'array_values'
         41        SEND_VAR                                                     !3
         42        DO_ICALL                                             $19     
         43        SEND_VAR                                                     $19
         44        DO_ICALL                                                     
         45      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.17 ms | 1915 KiB | 19 Q