3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "Apple1Crab2"; $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 echo $specialChar . " " . $numberChar . " " . $upperChar . " " . $lowerChar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3dE25
function name:  (null)
number of ops:  29
compiled vars:  !0 = $pswd, !1 = $specialChar, !2 = $numberChar, !3 = $upperChar, !4 = $lowerChar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Apple1Crab2'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5B%21%40%23%26%2A%25%5D%29%2B%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5Cd%29%7B2%2C%7D%2F'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    5    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5BA-Z%5D%29%7B2%2C%7D%2F'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
    6    16        INIT_FCALL                                               'preg_match'
         17        SEND_VAL                                                 '%2F%28%3F%3D.%2A%5BA-Z%5D%29%7B2%2C%7D%2F'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !4, $12
    8    21        CONCAT                                           ~14     !1, '+'
         22        CONCAT                                           ~15     ~14, !2
         23        CONCAT                                           ~16     ~15, '+'
         24        CONCAT                                           ~17     ~16, !3
         25        CONCAT                                           ~18     ~17, '+'
         26        CONCAT                                           ~19     ~18, !4
         27        ECHO                                                     ~19
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.44 ms | 1395 KiB | 15 Q