3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valueString = 'test'; $pattern = '/^[a-z0-9]{1,7}$/i'; var_dump(@preg_match($pattern, $valueString));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DWW0o
function name:  (null)
number of ops:  12
compiled vars:  !0 = $valueString, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test'
    3     1        ASSIGN                                                   !1, '%2F%5E%5Ba-z0-9%5D%7B1%2C7%7D%24%2Fi'
    4     2        INIT_FCALL                                               'var_dump'
          3        BEGIN_SILENCE                                    ~4      
          4        INIT_FCALL                                               'preg_match'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        END_SILENCE                                              ~4
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.04 ms | 1394 KiB | 17 Q