3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "Ap"; $specialChar= preg_match("/(?=.*[!@#&*%]+)/", $pswd); // at least one $numberChar= preg_match("/(?=.*\d{2,})/", $pswd); //two or more digits $upperChar= preg_match("/(?=.*[A-Z]{2,})/", $pswd); //two or more upper case letters $lowerChar= preg_match("/(?=.*[a-z]{2,})/", $pswd); //two or more lower case letters $pswdLength = preg_match("/(?=^.{6,20}$)/", $pswd); //length of pswd between min and max echo $specialChar . " " . $numberChar . " " . $upperChar . " " . $lowerChar . " " . $pswdLength;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AaMYZ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $pswd, !1 = $specialChar, !2 = $numberChar, !3 = $upperChar, !4 = $lowerChar, !5 = $pswdLength
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Ap'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5B%21%40%23%26%2A%25%5D%2B%29%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    4     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5Cd%7B2%2C%7D%29%2F'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    5    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5BA-Z%5D%7B2%2C%7D%29%2F'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !3, $11
    6    16        INIT_FCALL                                               'preg_match'
         17        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5Ba-z%5D%7B2%2C%7D%29%2F'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $13     
         20        ASSIGN                                                   !4, $13
    7    21        INIT_FCALL                                               'preg_match'
         22        SEND_VAL                                                 '%2F%28%3F%3D%5E.%7B6%2C20%7D%24%29%2F'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $15     
         25        ASSIGN                                                   !5, $15
    9    26        CONCAT                                           ~17     !1, '+'
         27        CONCAT                                           ~18     ~17, !2
         28        CONCAT                                           ~19     ~18, '+'
         29        CONCAT                                           ~20     ~19, !3
         30        CONCAT                                           ~21     ~20, '+'
         31        CONCAT                                           ~22     ~21, !4
         32        CONCAT                                           ~23     ~22, '+'
         33        CONCAT                                           ~24     ~23, !5
         34        ECHO                                                     ~24
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.49 ms | 1396 KiB | 15 Q