3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'family apotheke 14.05'; preg_match_all('!\d+\.*\d*!', $str ,$match); echo $number = implode(' ', $match[0]); echo "<br />".$filter_str = trim(str_replace($number, '', $str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/akBtU
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $match, !2 = $number, !3 = $filter_str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'family+apotheke+14.05'
    4     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%21%5Cd%2B%5C.%2A%5Cd%2A%21'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    5     6        FETCH_DIM_R                                          ~6      !1, 0
          7        FRAMELESS_ICALL_2                implode             ~7      '+', ~6
          8        ASSIGN                                               ~8      !2, ~7
          9        ECHO                                                         ~8
    6    10        FRAMELESS_ICALL_3                str_replace         ~9      !2, ''
         11        OP_DATA                                                      !0
         12        FRAMELESS_ICALL_1                trim                ~10     ~9
         13        ASSIGN                                               ~11     !3, ~10
         14        CONCAT                                               ~12     '%3Cbr+%2F%3E', ~11
         15        ECHO                                                         ~12
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.08 ms | 2076 KiB | 14 Q