3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = strtolower($name); $name = str_replace('à', 'a', $name); $name = str_replace(array('è', 'é'), 'e', $name); $name = str_replace('ì', 'i', $name); $name = str_replace('ò', 'o', $name); $name = str_replace('ù', 'u', $name); $name = str_replace(array("'", '.', ','), ' ', $name); $name = trim($name); $name = preg_replace('/ */', '-', $name); $name = preg_replace('/[^a-z0-9-]+/', '-', $name); while(strpos($name, '--')!==false) $name = str_replace('--', '-', $name); $name = preg_replace('/^-(.+)$/', '\\1', $name); $name = preg_replace('/^(.+)-$/', '\\1', $name); $names[$n] = $name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 69, Position 2 = 57
Branch analysis from position: 69
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 69, Position 2 = 57
Branch analysis from position: 69
Branch analysis from position: 57
filename:       /in/5mS0u
function name:  (null)
number of ops:  84
compiled vars:  !0 = $name, !1 = $names, !2 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtolower'
          1        SEND_VAR                                                 !0
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
          4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%C3%A0'
          6        SEND_VAL                                                 'a'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
         10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 <array>
         12        SEND_VAL                                                 'e'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !0, $7
         16        INIT_FCALL                                               'str_replace'
         17        SEND_VAL                                                 '%C3%AC'
         18        SEND_VAL                                                 'i'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $9      
         21        ASSIGN                                                   !0, $9
         22        INIT_FCALL                                               'str_replace'
         23        SEND_VAL                                                 '%C3%B2'
         24        SEND_VAL                                                 'o'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $11     
         27        ASSIGN                                                   !0, $11
         28        INIT_FCALL                                               'str_replace'
         29        SEND_VAL                                                 '%C3%B9'
         30        SEND_VAL                                                 'u'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                         $13     
         33        ASSIGN                                                   !0, $13
         34        INIT_FCALL                                               'str_replace'
         35        SEND_VAL                                                 <array>
         36        SEND_VAL                                                 '+'
         37        SEND_VAR                                                 !0
         38        DO_ICALL                                         $15     
         39        ASSIGN                                                   !0, $15
         40        INIT_FCALL                                               'trim'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                         $17     
         43        ASSIGN                                                   !0, $17
         44        INIT_FCALL                                               'preg_replace'
         45        SEND_VAL                                                 '%2F++%2A%2F'
         46        SEND_VAL                                                 '-'
         47        SEND_VAR                                                 !0
         48        DO_ICALL                                         $19     
         49        ASSIGN                                                   !0, $19
         50        INIT_FCALL                                               'preg_replace'
         51        SEND_VAL                                                 '%2F%5B%5Ea-z0-9-%5D%2B%2F'
         52        SEND_VAL                                                 '-'
         53        SEND_VAR                                                 !0
         54        DO_ICALL                                         $21     
         55        ASSIGN                                                   !0, $21
         56      > JMP                                                      ->63
         57    >   INIT_FCALL                                               'str_replace'
         58        SEND_VAL                                                 '--'
         59        SEND_VAL                                                 '-'
         60        SEND_VAR                                                 !0
         61        DO_ICALL                                         $23     
         62        ASSIGN                                                   !0, $23
         63    >   INIT_FCALL                                               'strpos'
         64        SEND_VAR                                                 !0
         65        SEND_VAL                                                 '--'
         66        DO_ICALL                                         $25     
         67        TYPE_CHECK                                  1018          $25
         68      > JMPNZ                                                    ~26, ->57
         69    >   INIT_FCALL                                               'preg_replace'
         70        SEND_VAL                                                 '%2F%5E-%28.%2B%29%24%2F'
         71        SEND_VAL                                                 '%5C1'
         72        SEND_VAR                                                 !0
         73        DO_ICALL                                         $27     
         74        ASSIGN                                                   !0, $27
         75        INIT_FCALL                                               'preg_replace'
         76        SEND_VAL                                                 '%2F%5E%28.%2B%29-%24%2F'
         77        SEND_VAL                                                 '%5C1'
         78        SEND_VAR                                                 !0
         79        DO_ICALL                                         $29     
         80        ASSIGN                                                   !0, $29
         81        ASSIGN_DIM                                               !1, !2
         82        OP_DATA                                                  !0
         83      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.54 ms | 1400 KiB | 23 Q