3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "AppleCrab123!"; $specialChar= preg_match("/^[!@#&*%]+/", $pswd); // at least one $numberChar= preg_match("/^\d{2,}/", $pswd); //two or more digits echo $specialChar . $numberChar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rCnV0
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pswd, !1 = $specialChar, !2 = $numberChar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'AppleCrab123%21'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5B%21%40%23%26%2A%25%5D%2B%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5E%5Cd%7B2%2C%7D%2F'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    6    11        CONCAT                                           ~8      !1, !2
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.13 ms | 1394 KiB | 15 Q