3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $text = <<<TEXT Павел Дуров fsdf sdf sdf TEXT; $filter = 'Павел Дуров'; $filter = mb_strtolower($filter); $parts = explode(' ', $filter); $parts = array_map('trim', $parts); $parts = array_map('preg_quote', $parts); $filter = implode('.*', $parts); // echo preg_match("~{$filter}~uis", $text); $a = mb_split('/[x00-x20]+/u', $text); $a = array_map('trim', $a); $a = array_filter($a); print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rROic
function name:  (null)
number of ops:  47
compiled vars:  !0 = $text, !1 = $filter, !2 = $parts, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    7     3        ASSIGN                                                   !0, '%0A%D0%9F%D0%B0%D0%B2%D0%B5%D0%BB+%0A%0A%D0%94%D1%83%D1%80%D0%BE%D0%B2+%0Afsdf+sdf+sdf%0A'
   16     4        ASSIGN                                                   !1, '%D0%9F%D0%B0%D0%B2%D0%B5%D0%BB+%D0%94%D1%83%D1%80%D0%BE%D0%B2'
   18     5        INIT_FCALL                                               'mb_strtolower'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
   19     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '+'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
   20    14        INIT_FCALL                                               'array_map'
         15        SEND_VAL                                                 'trim'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
   21    19        INIT_FCALL                                               'array_map'
         20        SEND_VAL                                                 'preg_quote'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !2, $13
   22    24        INIT_FCALL                                               'implode'
         25        SEND_VAL                                                 '.%2A'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                         $15     
         28        ASSIGN                                                   !1, $15
   27    29        INIT_FCALL                                               'mb_split'
         30        SEND_VAL                                                 '%2F%5Bx00-x20%5D%2B%2Fu'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                         $17     
         33        ASSIGN                                                   !3, $17
   28    34        INIT_FCALL                                               'array_map'
         35        SEND_VAL                                                 'trim'
         36        SEND_VAR                                                 !3
         37        DO_ICALL                                         $19     
         38        ASSIGN                                                   !3, $19
   29    39        INIT_FCALL                                               'array_filter'
         40        SEND_VAR                                                 !3
         41        DO_ICALL                                         $21     
         42        ASSIGN                                                   !3, $21
   31    43        INIT_FCALL                                               'print_r'
         44        SEND_VAR                                                 !3
         45        DO_ICALL                                                 
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.14 ms | 1400 KiB | 29 Q