3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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]+', $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/fcNTk
function name:  (null)
number of ops:  44
compiled vars:  !0 = $text, !1 = $filter, !2 = $parts, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   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'
   12     1        ASSIGN                                                   !1, '%D0%9F%D0%B0%D0%B2%D0%B5%D0%BB+%D0%94%D1%83%D1%80%D0%BE%D0%B2'
   14     2        INIT_FCALL                                               'mb_strtolower'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
   15     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '+'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
   16    11        INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 'trim'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
   17    16        INIT_FCALL                                               'array_map'
         17        SEND_VAL                                                 'preg_quote'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !2, $12
   18    21        INIT_FCALL                                               'implode'
         22        SEND_VAL                                                 '.%2A'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !1, $14
   23    26        INIT_FCALL                                               'mb_split'
         27        SEND_VAL                                                 '%5Bx00-x20%5D%2B'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !3, $16
   24    31        INIT_FCALL                                               'array_map'
         32        SEND_VAL                                                 'trim'
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $18     
         35        ASSIGN                                                   !3, $18
   25    36        INIT_FCALL                                               'array_filter'
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                         $20     
         39        ASSIGN                                                   !3, $20
   27    40        INIT_FCALL                                               'print_r'
         41        SEND_VAR                                                 !3
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.77 ms | 1400 KiB | 27 Q