3v4l.org

run code in 500+ PHP versions simultaneously
<? $str = "1234567 foo bar 122345678 baz 1222345 abc 11111222345 de xy 712111345446 is valid or even 49833376543"; if(preg_match_all('~\d{7,}~', $str, $out) > 0) { $res = array_filter($out[0], function($v) { return count(array_unique(str_split($v))) >= 7; }); } print_r($res); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/EMpNP
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str, !1 = $out, !2 = $res
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1234567+foo%0Abar+122345678+baz%0A1222345+abc%0A11111222345+de+xy%0A712111345446+is+valid+or+even+49833376543'
    9     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%7E%5Cd%7B7%2C%7D%7E'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                             $4      
          6        IS_SMALLER                                                   0, $4
          7      > JMPZ                                                         ~5, ->15
   11     8    >   INIT_FCALL                                                   'array_filter'
          9        FETCH_DIM_R                                          ~6      !1, 0
         10        SEND_VAL                                                     ~6
         11        DECLARE_LAMBDA_FUNCTION                              ~7      [0]
   13    12        SEND_VAL                                                     ~7
   11    13        DO_ICALL                                             $8      
         14        ASSIGN                                                       !2, $8
   16    15    >   INIT_FCALL                                                   'print_r'
         16        SEND_VAR                                                     !2
         17        DO_ICALL                                                     
   18    18      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EMpNP
function name:  {closure:/in/EMpNP:11}
number of ops:  11
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
   12     1        INIT_FCALL                                                   'array_unique'
          2        INIT_FCALL                                                   'str_split'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $1      
          5        SEND_VAR                                                     $1
          6        DO_ICALL                                             $2      
          7        COUNT                                                ~3      $2
          8        IS_SMALLER_OR_EQUAL                                  ~4      7, ~3
          9      > RETURN                                                       ~4
   13    10*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
219.53 ms | 2120 KiB | 18 Q