3v4l.org

run code in 300+ PHP versions simultaneously
<?php function create_slug($string){ $slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string); return $slug; } echo create_slug('ãaãe2a a a3j i11 $');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fgqeg
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'create_slug'
          1        SEND_VAL                                                 '%C3%A3a%C3%A3e2a+a+a3j+i11+%24'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function create_slug:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fgqeg
function name:  create_slug
number of ops:  9
compiled vars:  !0 = $string, !1 = $slug
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9-%5D%2B%2F'
          3        SEND_VAL                                                 '-'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !1, $2
    4     7      > RETURN                                                   !1
    5     8*     > RETURN                                                   null

End of function create_slug

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.18 ms | 1404 KiB | 17 Q