3v4l.org

run code in 200+ php & hhvm versions
<?php echo "---------------------password check----------------------- \n"; $str1="JamesBlunt32"; if(preg_match("/\A(?=\w{6,12}\z)(?=[^a-z]*[a-z])(?:[^A-Z]*[A-Z])(\D*\d.*)\z/", $str1)==1){ echo "Password valid \n"; } else echo "Password invalid \n";
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Jump found. Position 1 = 11
Branch analysis from position: 11
Jump found. Position 1 = -2
Branch analysis from position: 10
Jump found. Position 1 = -2
filename:       /in/lvvn4
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str1
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ECHO                                                     '---------------------password+check-----------------------+%0A'
   5     1        ASSIGN                                                   !0, 'JamesBlunt32'
   6     2        INIT_FCALL                                               'preg_match'
         3        SEND_VAL                                                 '%2F%5CA%28%3F%3D%5Cw%7B6%2C12%7D%5Cz%29%28%3F%3D%5B%5Ea-z%5D%2A%5Ba-z%5D%29%28%3F%3A%5B%5EA-Z%5D%2A%5BA-Z%5D%29%28%5CD%2A%5Cd.%2A%29%5Cz%2F'
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $2      
         6        IS_EQUAL                                         ~3      $2, 1
         7      > JMPZ                                                     ~3, ->10
   7     8    >   ECHO                                                     'Password+valid+%0A'
         9      > JMP                                                      ->11
   9    10    >   ECHO                                                     'Password+invalid+%0A'
        11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0