3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = 'Frequentiéregelaar 0.37 Kw. 240V ingang - IP:20 - Bouwgrootte : 1 '; $txt = preg_replace('/\p{M}/u', '', $txt); $txt = preg_replace("/[^A-Za-z0-9]/", '-', trim($txt)); $txt = preg_replace('!\--+!', '-', $txt); echo $txt; echo '<br />'; $test = "élloo"; var_dump(preg_replace('/\p{M}/u', '', Normalizer::normalize($test, Normalizer::FORM_D)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTo4s
function name:  (null)
number of ops:  39
compiled vars:  !0 = $txt, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Frequenti%C3%A9regelaar+0.37+Kw.+240V+ingang+-+IP%3A20+-+Bouwgrootte+%3A+1+'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5Cp%7BM%7D%2Fu'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9%5D%2F'
          9        SEND_VAL                                                 '-'
         10        INIT_FCALL                                               'trim'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !0, $6
    5    16        INIT_FCALL                                               'preg_replace'
         17        SEND_VAL                                                 '%21%5C--%2B%21'
         18        SEND_VAL                                                 '-'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $8      
         21        ASSIGN                                                   !0, $8
    7    22        ECHO                                                     !0
    9    23        ECHO                                                     '%3Cbr+%2F%3E'
   11    24        ASSIGN                                                   !1, '%C3%A9lloo'
   12    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'preg_replace'
         27        SEND_VAL                                                 '%2F%5Cp%7BM%7D%2Fu'
         28        SEND_VAL                                                 ''
         29        INIT_STATIC_METHOD_CALL                                  'Normalizer', 'normalize'
         30        SEND_VAR_EX                                              !1
         31        FETCH_CLASS_CONSTANT                             ~11     'Normalizer', 'FORM_D'
         32        SEND_VAL_EX                                              ~11
         33        DO_FCALL                                      0  $12     
         34        SEND_VAR                                                 $12
         35        DO_ICALL                                         $13     
         36        SEND_VAR                                                 $13
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.42 ms | 1396 KiB | 19 Q