3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'GÖREN GÖZLER KAMAŞIYOR'; echo "Original " . $s . "\n"; echo "Replaced " . preg_replace('#[^\P{L} 0-9?!]#i', '', $s) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qIM6e
function name:  (null)
number of ops:  13
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'G%C3%96REN+G%C3%96ZLER+KAMA%C5%9EIYOR'
    3     1        CONCAT                                           ~2      'Original+', !0
          2        CONCAT                                           ~3      ~2, '%0A'
          3        ECHO                                                     ~3
    4     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%23%5B%5E%5CP%7BL%7D+0-9%3F%21%5D%23i'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      'Replaced+', $4
         10        CONCAT                                           ~6      ~5, '%0A'
         11        ECHO                                                     ~6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.73 ms | 1394 KiB | 15 Q