3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('R_MD5_MATCH', '/^[a-f0-9]{32}$/i'); if(preg_match(R_MD5_MATCH, $input_string)) { echo "It matches."; } else { echo "It does not match."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KLme1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $input_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'R_MD5_MATCH'
          2        SEND_VAL                                                 '%2F%5E%5Ba-f0-9%5D%7B32%7D%24%2Fi'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'preg_match'
          5        FETCH_CONSTANT                                   ~2      'R_MD5_MATCH'
          6        SEND_VAL                                                 ~2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9      > JMPZ                                                     $3, ->12
    5    10    >   ECHO                                                     'It+matches.'
         11      > JMP                                                      ->13
    7    12    >   ECHO                                                     'It+does+not+match.'
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.69 ms | 1394 KiB | 17 Q