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? ausruf! ich bin mischa.??msch??. "; $text = file_get_contents("http://www.rommerskirchen-gbr.de/wissenswertes/faq-pflege.php"); $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/', '. ', $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]+\s/', ' ', $site); $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/4et1K
function name:  (null)
number of ops:  77
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+ausruf%21+ich+bin+mischa.%3F%3Fmsch%3F%3F.+'
    4     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.rommerskirchen-gbr.de%2Fwissenswertes%2Ffaq-pflege.php'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    6     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%23%3Cscript%28.%2A%3F%29%3E%28.%2A%3F%29%3C%2Fscript%3E%23is'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    7    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%23%3Cstyle%28.%2A%3F%29%3E%28.%2A%3F%29%3C%2Fstyle%3E%23is'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !1, $8
    8    17        INIT_FCALL                                               'strip_tags'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !1, $10
    9    21        INIT_FCALL                                               'preg_replace'
         22        SEND_VAL                                                 '%2F%5B%5C%3F%5D%2B%5Cs%2F'
         23        SEND_VAL                                                 '.+'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                         $12     
         26        ASSIGN                                                   !1, $12
   10    27        INIT_FCALL                                               'preg_replace'
         28        SEND_VAL                                                 '%2F%5B%5C%21%5D%2B%5Cs%2F'
         29        SEND_VAL                                                 '.+'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $14     
         32        ASSIGN                                                   !1, $14
   11    33        INIT_FCALL                                               'preg_replace'
         34        SEND_VAL                                                 '%2F%5Cs%5Cs%2B%2F'
         35        SEND_VAL                                                 '+'
         36        SEND_VAR                                                 !1
         37        DO_ICALL                                         $16     
         38        ASSIGN                                                   !1, $16
   12    39        INIT_FCALL                                               'strtolower'
         40        SEND_VAR                                                 !1
         41        DO_ICALL                                         $18     
         42        ASSIGN                                                   !1, $18
   13    43        INIT_FCALL                                               'html_entity_decode'
         44        SEND_VAR                                                 !1
         45        SEND_VAL                                                 3
         46        SEND_VAL                                                 'UTF-8'
         47        DO_ICALL                                         $20     
         48        ASSIGN                                                   !1, $20
   14    49        INIT_FCALL                                               'preg_replace'
         50        SEND_VAL                                                 '%2F%5B%5Ea-z0-9%5C.-%C3%BC%C3%9F%C3%A4%C3%B6%5Cs%5D%2B%5Cs%2F'
         51        SEND_VAL                                                 '+'
         52        SEND_VAR                                                 !1
         53        DO_ICALL                                         $22     
         54        ASSIGN                                                   !1, $22
   15    55        INIT_FCALL                                               'preg_replace'
         56        SEND_VAL                                                 '%2F%5B%5Ea-z0-9%5C.-%C3%BC%C3%9F%C3%A4%C3%B6%5Cs%5D%2B%2F'
         57        SEND_VAL                                                 ''
         58        SEND_VAR                                                 !1
         59        DO_ICALL                                         $24     
         60        ASSIGN                                                   !1, $24
   16    61        ASSIGN                                                   !2, <array>
   17    62        INIT_FCALL                                               'str_replace'
         63        SEND_VAR                                                 !2
         64        SEND_VAL                                                 ''
         65        SEND_VAR                                                 !1
         66        DO_ICALL                                         $27     
         67        ASSIGN                                                   !0, $27
   19    68        INIT_FCALL                                               'explode'
         69        SEND_VAL                                                 '.+'
         70        SEND_VAR                                                 !0
         71        DO_ICALL                                         $29     
         72        ASSIGN                                                   !1, $29
   21    73        INIT_FCALL                                               'print_r'
         74        SEND_VAR                                                 !1
         75        DO_ICALL                                                 
         76      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.09 ms | 1400 KiB | 29 Q