3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = ' Attribute1.2 numeric O '; function normSpace($line) { preg_match_all('/[\w\d\.]+/', $line, $line); return implode(' ', $line[0]); } var_dump(normSpace($line));//string(22) "Attribute1.2 numeric O"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vacjP
function name:  (null)
number of ops:  8
compiled vars:  !0 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++++Attribute1.2+numeric++++++++++++++++++++++++O++'
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'normspace'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function normspace:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vacjP
function name:  normSpace
number of ops:  13
compiled vars:  !0 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5B%5Cw%5Cd%5C.%5D%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '+'
          8        FETCH_DIM_R                                      ~2      !0, 0
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                         $3      
         11      > RETURN                                                   $3
    7    12*     > RETURN                                                   null

End of function normspace

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.99 ms | 1398 KiB | 20 Q