3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = iconv("utf-8", "cp1251", "/-[а-я]+=/"); $str = iconv("utf-8", "cp1251", "-превед="); var_dump($re, $str, preg_match($re, $str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hJhnX
function name:  (null)
number of ops:  22
compiled vars:  !0 = $re, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'iconv'
          1        SEND_VAL_EX                                              'utf-8'
          2        SEND_VAL_EX                                              'cp1251'
          3        SEND_VAL_EX                                              '%2F-%5B%D0%B0-%D1%8F%5D%2B%3D%2F'
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL_BY_NAME                                       'iconv'
          7        SEND_VAL_EX                                              'utf-8'
          8        SEND_VAL_EX                                              'cp1251'
          9        SEND_VAL_EX                                              '-%D0%BF%D1%80%D0%B5%D0%B2%D0%B5%D0%B4%3D'
         10        DO_FCALL                                      0  $4      
         11        ASSIGN                                                   !1, $4
    4    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        INIT_FCALL                                               'preg_match'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.12 ms | 1399 KiB | 17 Q