3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "dulsão vafan"; $text = preg_replace('/[^\\pL\d]+/u', $separator, $text); if(function_exists('iconv')){ setlocale(LC_CTYPE, 'fr_FR.UTF-8'); $text = iconv('UTF-8','ASCII//TRANSLIT//IGNORE',$text); } $text = strtolower($text); $text = preg_replace('/[^-\w]+/', $separator, $text); $text = trim($text, '-_ '); echo $text;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/gulm0
function name:  (null)
number of ops:  38
compiled vars:  !0 = $text, !1 = $separator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'duls%C3%A3o+vafan'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5E%5CpL%5Cd%5D%2B%2Fu'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    5     7        INIT_FCALL                                               'function_exists'
          8        SEND_VAL                                                 'iconv'
          9        DO_ICALL                                         $5      
         10      > JMPZ                                                     $5, ->21
    6    11    >   INIT_FCALL                                               'setlocale'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 'fr_FR.UTF-8'
         14        DO_ICALL                                                 
    7    15        INIT_FCALL_BY_NAME                                       'iconv'
         16        SEND_VAL_EX                                              'UTF-8'
         17        SEND_VAL_EX                                              'ASCII%2F%2FTRANSLIT%2F%2FIGNORE'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $7      
         20        ASSIGN                                                   !0, $7
   10    21    >   INIT_FCALL                                               'strtolower'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $9      
         24        ASSIGN                                                   !0, $9
   11    25        INIT_FCALL                                               'preg_replace'
         26        SEND_VAL                                                 '%2F%5B%5E-%5Cw%5D%2B%2F'
         27        SEND_VAR                                                 !1
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $11     
         30        ASSIGN                                                   !0, $11
   13    31        INIT_FCALL                                               'trim'
         32        SEND_VAR                                                 !0
         33        SEND_VAL                                                 '-_+'
         34        DO_ICALL                                         $13     
         35        ASSIGN                                                   !0, $13
   15    36        ECHO                                                     !0
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.36 ms | 1396 KiB | 23 Q