3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datumOrt = 'Basel 77à'; $whiteSpace = '\s'; //if you dnt even want to allow white-space set it to '' $pattern = '/[^a-zA-Z' . $whiteSpace . ']/u'; $datumOrt = preg_replace($pattern, '', (string) $datumOrt); echo $datumOrt;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z25BM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $datumOrt, !1 = $whiteSpace, !2 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Basel+77%C3%A0'
    3     1        ASSIGN                                                   !1, '%5Cs'
    4     2        CONCAT                                           ~5      '%2F%5B%5Ea-zA-Z', !1
          3        CONCAT                                           ~6      ~5, '%5D%2Fu'
          4        ASSIGN                                                   !2, ~6
    5     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 ''
          8        CAST                                          6  ~8      !0
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !0, $9
    6    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.94 ms | 1394 KiB | 15 Q