3v4l.org

run code in 300+ PHP versions simultaneously
<?php function remove_none_word_chars($string) { return preg_replace('~[^\\pL\d]+~u', ' ', $string); } $text = ' řščřšžčřSuperviser le travail de l’ensemble du personnel de production, de l’entretien et de la maintenance sur le quart de nuit en tenant compte de la convention collective;'; echo remove_none_word_chars($text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bjna2
function name:  (null)
number of ops:  6
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '%EF%82%A7+%C5%99%C5%A1%C4%8D%C5%99%C5%A1%C5%BE%C4%8D%C5%99Superviser+le+travail+de+l%E2%80%99ensemble+du+personnel+de+production%2C+de+l%E2%80%99entretien+et+de+la+maintenance+sur+le+quart+de+nuit+en+tenant+compte+de+la+convention+collective%3B'
    9     1        INIT_FCALL                                               'remove_none_word_chars'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

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

End of function remove_none_word_chars

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.79 ms | 1397 KiB | 16 Q