3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<test1>Dies ist ein Test</test1>\n<test2>\nUsw. usf.\n</test2>"; echo $html; preg_match_all("|<([^>]+)>(.*?)</[^>]+>|s", $html, $treffer, PREG_SET_ORDER); echo "\nErgebnis:\n\n"; $fileContentArray = array(); foreach ($treffer as $wert) { $fileContentArray[$wert[1]] = str_replace("\n", "", $wert[2]); } print_r($fileContentArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 22
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/trGek
function name:  (null)
number of ops:  27
compiled vars:  !0 = $html, !1 = $treffer, !2 = $fileContentArray, !3 = $wert
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ctest1%3EDies+ist+ein+Test%3C%2Ftest1%3E%0A%3Ctest2%3E%0AUsw.+usf.%0A%3C%2Ftest2%3E'
    3     1        ECHO                                                     !0
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%7C%3C%28%5B%5E%3E%5D%2B%29%3E%28.%2A%3F%29%3C%2F%5B%5E%3E%5D%2B%3E%7Cs'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        SEND_VAL                                                 2
          7        DO_ICALL                                                 
    6     8        ECHO                                                     '%0AErgebnis%3A%0A%0A'
    8     9        ASSIGN                                                   !2, <array>
    9    10      > FE_RESET_R                                       $7      !1, ->22
         11    > > FE_FETCH_R                                               $7, !3, ->22
   10    12    >   FETCH_DIM_R                                      ~8      !3, 1
         13        INIT_FCALL                                               'str_replace'
         14        SEND_VAL                                                 '%0A'
         15        SEND_VAL                                                 ''
         16        FETCH_DIM_R                                      ~10     !3, 2
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        ASSIGN_DIM                                               !2, ~8
         20        OP_DATA                                                  $11
    9    21      > JMP                                                      ->11
         22    >   FE_FREE                                                  $7
   13    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.34 ms | 1388 KiB | 19 Q