3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ValidateForms{ # Min and Max values for username and passoword const MIN_USERNAME = 4; const MAX_USERNAME = 20; const MIN_PASSWORD = 8; const MAX_PASSWORD = 40; # Regex const REGEX_USERNAME = "/^[A-z0-9_]{" . self::MIN_USERNAME . "," . self::MAX_USERNAME .'}$/'; const REGEX_PASSWORD = "/^[A-z0-9_\\\*\-]{" . self::MIN_PASSWORD . "," . self::MAX_PASSWORD .'}$/'; public static $errors = array( 'username' => array(false, "Invalid username: it must have between " . self::MIN_USERNAME . " and " . self::MAX_USERNAME . " chars."), 'password' => array(false, "Invalid password: it must have between self::MIN_PASSWORD and self::MAX_PASSWORD chars and special chars.") ); } print_r(ValidateForms::$errors); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oe2EK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'print_r'
          1        FETCH_STATIC_PROP_R          global lock         ~0      'errors'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   26     4      > RETURN                                                   1

Class ValidateForms: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.79 ms | 1393 KiB | 15 Q