3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_CTYPE, 'nl_BE.utf8'); $input = "beëindigén van vreemde #@)(#!@$#$@ links !"; echo rtrim( preg_replace('/([^a-z0-9]+)/', '-', strtolower( preg_replace("/&([a-z])[a-z]+;/i", "$1", htmlentities( $input ) ) ) ), '-');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4D2Y
function name:  (null)
number of ops:  27
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 'nl_BE.utf8'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, 'be%C3%ABindig%C3%A9n+van+vreemde+%23%40%29%28%23%21%40%24%23%24%40+links+%21'
    6     5        INIT_FCALL                                               'rtrim'
    7     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%28%5B%5Ea-z0-9%5D%2B%29%2F'
          8        SEND_VAL                                                 '-'
    8     9        INIT_FCALL                                               'strtolower'
    9    10        INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%2F%26%28%5Ba-z%5D%29%5Ba-z%5D%2B%3B%2Fi'
         12        SEND_VAL                                                 '%241'
   10    13        INIT_FCALL                                               'htmlentities'
   11    14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
   15    23        SEND_VAL                                                 '-'
         24        DO_ICALL                                         $7      
         25        ECHO                                                     $7
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.34 ms | 1395 KiB | 23 Q