3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filter = 'Павел Дуров'; $filter = mb_strtolower($filter); $parts = explode(' ', $filter); $parts = array_map('trim', $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/Mm6dk
function name:  (null)
number of ops:  30
compiled vars:  !0 = $filter, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%9F%D0%B0%D0%B2%D0%B5%D0%BB+%D0%94%D1%83%D1%80%D0%BE%D0%B2'
    5     1        INIT_FCALL                                               'mb_strtolower'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '+'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    7    10        INIT_FCALL                                               'array_map'
         11        SEND_VAL                                                 'trim'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    8    15        INIT_FCALL                                               'array_map'
         16        SEND_VAL                                                 'preg_quote'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !1, $9
    9    20        INIT_FCALL                                               'implode'
         21        SEND_VAL                                                 '.%2B'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $11     
         24        ASSIGN                                                   !0, $11
   11    25        ROPE_INIT                                     3  ~14     '%7E'
         26        ROPE_ADD                                      1  ~14     ~14, !0
         27        ROPE_END                                      2  ~13     ~14, '%7Euis'
         28        ECHO                                                     ~13
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.72 ms | 940 KiB | 22 Q