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 = mb_split('[\x00-\x20]+', $filter); $parts = array_map('trim', $parts); $parts = array_filter($parts); $parts = array_map('preg_quote', $parts); $filter = implode('.*', $parts); echo "~{$filter}~uis";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6lY9T
function name:  (null)
number of ops:  38
compiled vars:  !0 = $text, !1 = $filter, !2 = $parts
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%D0%94%D1%83%D1%80%D0%BE%D0%B2%0Afsdf+sdf+sdf%0A'
   15     4        ASSIGN                                                   !1, ''
   16     5        INIT_FCALL                                               'mb_strtolower'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
   17     9        INIT_FCALL                                               'mb_split'
         10        SEND_VAL                                                 '%5B%5Cx00-%5Cx20%5D%2B'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
   18    14        INIT_FCALL                                               'array_map'
         15        SEND_VAL                                                 'trim'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !2, $10
   19    19        INIT_FCALL                                               'array_filter'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $12     
         22        ASSIGN                                                   !2, $12
   20    23        INIT_FCALL                                               'array_map'
         24        SEND_VAL                                                 'preg_quote'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $14     
         27        ASSIGN                                                   !2, $14
   21    28        INIT_FCALL                                               'implode'
         29        SEND_VAL                                                 '.%2A'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                         $16     
         32        ASSIGN                                                   !1, $16
   23    33        ROPE_INIT                                     3  ~19     '%7E'
         34        ROPE_ADD                                      1  ~19     ~19, !1
         35        ROPE_END                                      2  ~18     ~19, '%7Euis'
         36        ECHO                                                     ~18
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.72 ms | 1396 KiB | 25 Q