3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "hallo du bi aslo ein tag <tag>im tag </tag> ich bin ein ümläütwört. ich bin eine frage? ich bin mischa.??msch??. "; $site = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $text); $site = preg_replace('#<style(.*?)>(.*?)</style>#is', '', $site); $site = strip_tags($site); $site = preg_replace('/[\?]+\s/', '. ', $site); $site = preg_replace('/\s\s+/', ' ', $site); $site = strtolower ( $site ); $site = html_entity_decode($site, ENT_QUOTES, "UTF-8"); $site = preg_replace('/[^a-z0-9\.\?-üßäö\s]+/', ' ', $site); $search = array("[", "]", "{", "}", ":"); $text = str_replace($search, "", $site); $site = explode(". ", $text); print_r($site);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uv7K2
function name:  (null)
number of ops:  61
compiled vars:  !0 = $text, !1 = $site, !2 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hallo+du+bi+aslo+ein+tag+%3Ctag%3Eim+tag+%3C%2Ftag%3E+ich+bin+ein+%C3%BCml%C3%A4%C3%BCtw%C3%B6rt.+ich+bin+eine+frage%3F+ich+bin+mischa.%3F%3Fmsch%3F%3F.+'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%3Cscript%28.%2A%3F%29%3E%28.%2A%3F%29%3C%2Fscript%3E%23is'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    6     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%23%3Cstyle%28.%2A%3F%29%3E%28.%2A%3F%29%3C%2Fstyle%3E%23is'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    7    13        INIT_FCALL                                               'strip_tags'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !1, $8
    8    17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%2F%5B%5C%3F%5D%2B%5Cs%2F'
         19        SEND_VAL                                                 '.+'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $10     
         22        ASSIGN                                                   !1, $10
    9    23        INIT_FCALL                                               'preg_replace'
         24        SEND_VAL                                                 '%2F%5Cs%5Cs%2B%2F'
         25        SEND_VAL                                                 '+'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                         $12     
         28        ASSIGN                                                   !1, $12
   10    29        INIT_FCALL                                               'strtolower'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $14     
         32        ASSIGN                                                   !1, $14
   11    33        INIT_FCALL                                               'html_entity_decode'
         34        SEND_VAR                                                 !1
         35        SEND_VAL                                                 3
         36        SEND_VAL                                                 'UTF-8'
         37        DO_ICALL                                         $16     
         38        ASSIGN                                                   !1, $16
   12    39        INIT_FCALL                                               'preg_replace'
         40        SEND_VAL                                                 '%2F%5B%5Ea-z0-9%5C.%5C%3F-%C3%BC%C3%9F%C3%A4%C3%B6%5Cs%5D%2B%2F'
         41        SEND_VAL                                                 '+'
         42        SEND_VAR                                                 !1
         43        DO_ICALL                                         $18     
         44        ASSIGN                                                   !1, $18
   13    45        ASSIGN                                                   !2, <array>
   14    46        INIT_FCALL                                               'str_replace'
         47        SEND_VAR                                                 !2
         48        SEND_VAL                                                 ''
         49        SEND_VAR                                                 !1
         50        DO_ICALL                                         $21     
         51        ASSIGN                                                   !0, $21
   16    52        INIT_FCALL                                               'explode'
         53        SEND_VAL                                                 '.+'
         54        SEND_VAR                                                 !0
         55        DO_ICALL                                         $23     
         56        ASSIGN                                                   !1, $23
   18    57        INIT_FCALL                                               'print_r'
         58        SEND_VAR                                                 !1
         59        DO_ICALL                                                 
         60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.2 ms | 1400 KiB | 27 Q