3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "fĂștbol"; $string = htmlentities(strtolower(utf8_decode($string))); $string = preg_replace("/&(.)(acute|cedil|circ|ring|tilde|uml);/", "$1", $string); $string = preg_replace("/([^a-z0-9]+)/", "-", html_entity_decode($string)); $string = trim($string, "-"); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FXgJO
function name:  (null)
number of ops:  33
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'f%C3%BAtbol'
    3     1        INIT_FCALL                                               'htmlentities'
          2        INIT_FCALL                                               'strtolower'
          3        INIT_FCALL                                               'utf8_decode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    4    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%2F%26%28.%29%28acute%7Ccedil%7Ccirc%7Cring%7Ctilde%7Cuml%29%3B%2F'
         13        SEND_VAL                                                 '%241'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    5    17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%2F%28%5B%5Ea-z0-9%5D%2B%29%2F'
         19        SEND_VAL                                                 '-'
         20        INIT_FCALL                                               'html_entity_decode'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                         $9      
         25        ASSIGN                                                   !0, $9
    6    26        INIT_FCALL                                               'trim'
         27        SEND_VAR                                                 !0
         28        SEND_VAL                                                 '-'
         29        DO_ICALL                                         $11     
         30        ASSIGN                                                   !0, $11
    7    31        ECHO                                                     !0
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.26 ms | 1388 KiB | 25 Q