3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tests = [ 'one2three', '3blindMice', 'Blind Melon', 'c0lourbl!nd', ]; // I am making a method so your password needs at least one captial and one symbol or number. foreach ($tests as $test) { printf( "%14s: %s\n", $test, preg_match('/(?=.*[A-Z])(?=.*[^a-zA-Z\s])/su', $test) ? 'pass' : 'fail' ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/6Rfg2W
function name:  (null)
number of ops:  16
compiled vars:  !0 = $tests, !1 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1      > FE_RESET_R                                           $3      !0, ->14
          2    > > FE_FETCH_R                                                   $3, !1, ->14
   12     3    >   INIT_FCALL                                                   'printf'
   13     4        SEND_VAL                                                     '%2514s%3A+%25s%0A'
   14     5        SEND_VAR                                                     !1
   15     6        FRAMELESS_ICALL_2                preg_match          ~4      '%2F%28%3F%3D.%2A%5BA-Z%5D%29%28%3F%3D.%2A%5B%5Ea-zA-Z%5Cs%5D%29%2Fsu', !1
          7      > JMPZ                                                         ~4, ->10
          8    >   QM_ASSIGN                                            ~5      'pass'
          9      > JMP                                                          ->11
         10    >   QM_ASSIGN                                            ~5      'fail'
         11    >   SEND_VAL                                                     ~5
   12    12        DO_ICALL                                                     
   11    13      > JMP                                                          ->2
         14    >   FE_FREE                                                      $3
   17    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.26 ms | 1455 KiB | 14 Q