3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keyword = 'Гостиница'; $keyword = preg_replace('/[^a-zA-Zа-яА-ЯёЁ0-9\xA5\xAA\xAF\xB2\xB3\xB4\xBA\xBF\-\=\.\/\\\,\!\@\#\№\$\%\:\;\~\_\(\)\|\& ]/isU', ' ', $keyword); $keyword = preg_replace('/\s+/', ' ', $keyword); $keyword = trim($keyword); print_r($keyword);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TE69M
function name:  (null)
number of ops:  21
compiled vars:  !0 = $keyword
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%93%D0%BE%D1%81%D1%82%D0%B8%D0%BD%D0%B8%D1%86%D0%B0'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z%D0%B0-%D1%8F%D0%90-%D0%AF%D1%91%D0%810-9%5CxA5%5CxAA%5CxAF%5CxB2%5CxB3%5CxB4%5CxBA%5CxBF%5C-%5C%3D%5C.%5C%2F%5C%5C%2C%5C%21%5C%40%5C%23%5C%E2%84%96%5C%24%5C%25%5C%3A%5C%3B%5C%7E%5C_%5C%28%5C%29%5C%7C%5C%26+%5D%2FisU'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    5     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5Cs%2B%2F'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    6    13        INIT_FCALL                                               'trim'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    7    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.41 ms | 1386 KiB | 19 Q