3v4l.org

run code in 300+ 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:  18
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        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    5     9        ASSIGN                                                   !0, '%D0%B5%D1%89%D1%91'
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_match'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.44 ms | 1399 KiB | 17 Q