3v4l.org

run code in 300+ 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:  25
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        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '+'
          8        FETCH_DIM_R                                      ~6      !1, 0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                           ~8      !2, $7
         12        ECHO                                                     ~8
    6    13        INIT_FCALL                                               'trim'
         14        INIT_FCALL                                               'str_replace'
         15        SEND_VAR                                                 !2
         16        SEND_VAL                                                 ''
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        SEND_VAR                                                 $9
         20        DO_ICALL                                         $10     
         21        ASSIGN                                           ~11     !3, $10
         22        CONCAT                                           ~12     '%3Cbr+%2F%3E', ~11
         23        ECHO                                                     ~12
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.15 ms | 1008 KiB | 17 Q