3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'v Bonjour  M GombertN°06737401 Récréditation Demande N°17217851 du 10 12 13'; $output = preg_replace('!\s+!', ' ', $string); $aWords = explode(' ', $output); print_r($aWords);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fm2fI
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $output, !2 = $aWords
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'v+Bonjour+%C2%A0M+GombertN%C2%B006737401%C2%A0R%C3%A9cr%C3%A9ditation+Demande+N%C2%B017217851+du+10+12+13'
    6     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%21%5Cs%2B%21'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    8     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
   12    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.4 ms | 1386 KiB | 19 Q