3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zakres_valid = '/^[A-Za-z\/]{1,5}-[0-9]{5,8}$/'; $zakres = array(); $st = 'ST-856549'; for($i=0;$i<10;$i++){ $zakres[] = $st; $st++; } var_dump($zakres); for($i=0;$i<10;$i++){ if(!preg_match($zakres_valid, $zakres[$i])){ echo "/".$zakres_valid.", ".$zakres."/"; echo "ERROR. Numer $zakres[$i] z podanego zakresu nie pasuje do wzorca.<br />"; } else { echo "OK"; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 16
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 34
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 16
Branch analysis from position: 38
Branch analysis from position: 16
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 16
Branch analysis from position: 38
Branch analysis from position: 16
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/b6jGk
function name:  (null)
number of ops:  39
compiled vars:  !0 = $zakres_valid, !1 = $zakres, !2 = $st, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5E%5BA-Za-z%5C%2F%5D%7B1%2C5%7D-%5B0-9%5D%7B5%2C8%7D%24%2F'
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, 'ST-856549'
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->9
    8     5    >   ASSIGN_DIM                                               !1
          6        OP_DATA                                                  !2
    9     7        PRE_INC                                                  !2
    7     8        PRE_INC                                                  !3
          9    >   IS_SMALLER                                               !3, 10
         10      > JMPNZ                                                    ~11, ->5
   11    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   13    14        ASSIGN                                                   !3, 0
         15      > JMP                                                      ->36
   14    16    >   INIT_FCALL                                               'preg_match'
         17        SEND_VAR                                                 !0
         18        FETCH_DIM_R                                      ~14     !1, !3
         19        SEND_VAL                                                 ~14
         20        DO_ICALL                                         $15     
         21        BOOL_NOT                                         ~16     $15
         22      > JMPZ                                                     ~16, ->34
   15    23    >   CONCAT                                           ~17     '%2F', !0
         24        CONCAT                                           ~18     ~17, '%2C+'
         25        CONCAT                                           ~19     ~18, !1
         26        CONCAT                                           ~20     ~19, '%2F'
         27        ECHO                                                     ~20
   16    28        ROPE_INIT                                     3  ~23     'ERROR.+Numer+'
         29        FETCH_DIM_R                                      ~21     !1, !3
         30        ROPE_ADD                                      1  ~23     ~23, ~21
         31        ROPE_END                                      2  ~22     ~23, '+z+podanego+zakresu+nie+pasuje+do+wzorca.%3Cbr+%2F%3E'
         32        ECHO                                                     ~22
         33      > JMP                                                      ->35
   18    34    >   ECHO                                                     'OK'
   13    35    >   PRE_INC                                                  !3
         36    >   IS_SMALLER                                               !3, 10
         37      > JMPNZ                                                    ~26, ->16
   22    38    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.17 ms | 1400 KiB | 17 Q