3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "еще"; $valid_string_expr = '/^[а-я]+$/u'; var_dump(preg_match($valid_string_expr, $str)); $str = "ещё"; var_dump(preg_match($valid_string_expr, $str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oBqFi
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $valid_string_expr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%D0%B5%D1%89%D0%B5'
    3     1        ASSIGN                                                       !1, '%2F%5E%5B%D0%B0-%D1%8F%5D%2B%24%2Fu'
    4     2        INIT_FCALL                                                   'var_dump'
          3        FRAMELESS_ICALL_2                preg_match          ~4      !1, !0
          4        SEND_VAL                                                     ~4
          5        DO_ICALL                                                     
    5     6        ASSIGN                                                       !0, '%D0%B5%D1%89%D1%91'
    6     7        INIT_FCALL                                                   'var_dump'
          8        FRAMELESS_ICALL_2                preg_match          ~7      !1, !0
          9        SEND_VAL                                                     ~7
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.02 ms | 2568 KiB | 14 Q