3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Simplify { public static function URL($input) { return rtrim(preg_replace('/([^a-z0-9]+)/', '-', strtolower(preg_replace("/&([a-z])[a-z]+;/i", "$1", htmlentities($input)))), '-'); } } echo Simplify::URL("Test! Wellicht --- een góëd voorbeeld ^#*$ dit keer!");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Evoim
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'Simplify', 'URL'
          1        SEND_VAL                                                 'Test%21+Wellicht+---+een+g%C3%B3%C3%ABd+voorbeeld+%5E%23%2A%24+dit+keer%21'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Class Simplify:
Function url:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Evoim
function name:  URL
number of ops:  23
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'rtrim'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%28%5B%5Ea-z0-9%5D%2B%29%2F'
          4        SEND_VAL                                                 '-'
          5        INIT_FCALL                                               'strtolower'
          6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%26%28%5Ba-z%5D%29%5Ba-z%5D%2B%3B%2Fi'
          8        SEND_VAL                                                 '%241'
          9        INIT_FCALL                                               'htmlentities'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $1      
         12        SEND_VAR                                                 $1
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        SEND_VAL                                                 '-'
         20        DO_ICALL                                         $5      
         21      > RETURN                                                   $5
    8    22*     > RETURN                                                   null

End of function url

End of class Simplify.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1396 KiB | 21 Q