3v4l.org

run code in 500+ 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/GP31i
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+Superviser+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/GP31i
function name:  remove_none_word_chars
number of ops:  5
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        FRAMELESS_ICALL_3                preg_replace        ~1      '%7E%5B%5E%5CpL%5Cd%5D%2B%7Eu', '+'
          2        OP_DATA                                                      !0
          3      > RETURN                                                       ~1
    5     4*     > RETURN                                                       null

End of function remove_none_word_chars

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.62 ms | 2973 KiB | 14 Q