3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array( '|174|September|2001|', '|Pengantar=Hello!!!!', '|Tema= Sami Mawon', '|Tema_isi=meet you!!!', '|Kutip=people', '|Kutip_kitab=Efesus', '|Kutip_pasal=4', '|Kutip_ayat=28', '|Tema_sumber=Kiriman dari Maurits albert (romind@ )', '[[Kategori:e-humor 2001]]', ) ); $pattern = '/(?<first>\w+)[:=](?<rest>[\d|\w|\s]+)/'; $matches = array(); foreach ($a as $_arrEach) { foreach ($_arrEach as $_each) { $result = preg_match($pattern, $_each, $matches[]); } } echo "<pre>"; print_r($matches); echo "</pre>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/EYkWA
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $pattern, !2 = $matches, !3 = $_arrEach, !4 = $_each, !5 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   16     1        ASSIGN                                                   !1, '%2F%28%3F%3Cfirst%3E%5Cw%2B%29%5B%3A%3D%5D%28%3F%3Crest%3E%5B%5Cd%7C%5Cw%7C%5Cs%5D%2B%29%2F'
   17     2        ASSIGN                                                   !2, <array>
   18     3      > FE_RESET_R                                       $9      !0, ->17
          4    > > FE_FETCH_R                                               $9, !3, ->17
   19     5    > > FE_RESET_R                                       $10     !3, ->15
          6    > > FE_FETCH_R                                               $10, !4, ->15
   20     7    >   INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !4
         10        FETCH_DIM_W                                      $11     !2
         11        SEND_REF                                                 $11
         12        DO_ICALL                                         $12     
         13        ASSIGN                                                   !5, $12
   19    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $10
   18    16      > JMP                                                      ->4
         17    >   FE_FREE                                                  $9
   24    18        ECHO                                                     '%3Cpre%3E'
   25    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
   26    22        ECHO                                                     '%3C%2Fpre%3E'
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.31 ms | 1396 KiB | 17 Q