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 = preg_split('/[x00-x20]+/uis', $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/6h94a
function name:  (null)
number of ops:  35
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+fsdf+sdf+sdf%0A'
   11     1        ASSIGN                                                   !1, '%D0%9F%D0%B0%D0%B2%D0%B5%D0%BB+%D0%94%D1%83%D1%80%D0%BE%D0%B2'
   13     2        INIT_FCALL                                               'mb_strtolower'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
   14     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '+'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
   15    11        INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 'trim'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
   16    16        INIT_FCALL                                               'array_map'
         17        SEND_VAL                                                 'preg_quote'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !2, $12
   17    21        INIT_FCALL                                               'implode'
         22        SEND_VAL                                                 '.%2A'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !1, $14
   22    26        INIT_FCALL                                               'preg_split'
         27        SEND_VAL                                                 '%2F%5Bx00-x20%5D%2B%2Fuis'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !3, $16
   26    31        INIT_FCALL                                               'print_r'
         32        SEND_VAR                                                 !3
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.13 ms | 1396 KiB | 25 Q