3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = str_repeat('a', 5431); $res = preg_match('~(a)*~', $subject); if ($res > 0) { echo 'match', PHP_EOL; } elseif ($res === 0) { echo 'no match', PHP_EOL; } else { echo 'preg_match error ', preg_last_error(), PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vMXp8
function name:  (null)
number of ops:  26
compiled vars:  !0 = $subject, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 5431
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%7E%28a%29%2A%7E'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    4    10        IS_SMALLER                                               0, !1
         11      > JMPZ                                                     ~6, ->15
    5    12    >   ECHO                                                     'match'
         13        ECHO                                                     '%0A'
    4    14      > JMP                                                      ->25
    6    15    >   IS_IDENTICAL                                             !1, 0
         16      > JMPZ                                                     ~7, ->20
    7    17    >   ECHO                                                     'no+match'
         18        ECHO                                                     '%0A'
    6    19      > JMP                                                      ->25
    9    20    >   ECHO                                                     'preg_match+error+'
         21        INIT_FCALL                                               'preg_last_error'
         22        DO_ICALL                                         $8      
         23        ECHO                                                     $8
         24        ECHO                                                     '%0A'
   10    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.38 ms | 1000 KiB | 16 Q