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); if(!preg_match($zakres_valid, $zakres)){ 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
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 31
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
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/jhuao
function name:  (null)
number of ops:  33
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                                                 
   12    14        INIT_FCALL                                               'preg_match'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $13     
         18        BOOL_NOT                                         ~14     $13
         19      > JMPZ                                                     ~14, ->31
   13    20    >   CONCAT                                           ~15     '%2F', !0
         21        CONCAT                                           ~16     ~15, '%2C+'
         22        CONCAT                                           ~17     ~16, !1
         23        CONCAT                                           ~18     ~17, '%2F'
         24        ECHO                                                     ~18
   14    25        ROPE_INIT                                     3  ~21     'ERROR.+Numer+'
         26        FETCH_DIM_R                                      ~19     !1, !3
         27        ROPE_ADD                                      1  ~21     ~21, ~19
         28        ROPE_END                                      2  ~20     ~21, '+z+podanego+zakresu+nie+pasuje+do+wzorca.%3Cbr+%2F%3E'
         29        ECHO                                                     ~20
         30      > JMP                                                      ->32
   16    31    >   ECHO                                                     'OK'
   19    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.61 ms | 1396 KiB | 17 Q