3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.57 ms | 1399 KiB | 15 Q