3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'SlimDuct 45° Vertical Elbow 2-3/4" Ivory SCF77I'; $str = strtolower(trim(preg_replace('/[^a-zA-Z0-9]+/', '-', $name), '-')); echo $str. "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bC7Dr
function name:  (null)
number of ops:  17
compiled vars:  !0 = $name, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'SlimDuct+45%C2%B0+Vertical+Elbow+2-3%2F4%22+Ivory+SCF77I'
    3     1        INIT_FCALL                                               'strtolower'
          2        INIT_FCALL                                               'trim'
          3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z0-9%5D%2B%2F'
          5        SEND_VAL                                                 '-'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 '-'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    4    14        CONCAT                                           ~7      !1, '%0A'
         15        ECHO                                                     ~7
    5    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.84 ms | 1386 KiB | 19 Q