3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search_a = "A"; $s="domain.io. A 8.8.8.8 www CNAME domain.io"; $lines = explode(" ", $s); $domain = "domain.io"; foreach($lines as $a) { if (preg_match("/\b".$search_a."\b/i", $a)) { $a_array = "$a"; $a_record_output = preg_split('/(.'.$domain.'.|\s)/', $a_array, -1, PREG_SPLIT_NO_EMPTY); print_r($a_record_output); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 32
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 32
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 31
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 31
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/1jMEN
function name:  (null)
number of ops:  34
compiled vars:  !0 = $search_a, !1 = $s, !2 = $lines, !3 = $domain, !4 = $a, !5 = $a_array, !6 = $a_record_output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'A'
    4     1        ASSIGN                                                   !1, 'domain.io.++++++A+++8.8.8.8%0Awww+++++++++++++CNAME+domain.io'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0A'
    7     4        SEND_VAR                                                 !1
    6     5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !2, $9
    8     7        ASSIGN                                                   !3, 'domain.io'
    9     8      > FE_RESET_R                                       $12     !2, ->32
          9    > > FE_FETCH_R                                               $12, !4, ->32
   10    10    >   INIT_FCALL                                               'preg_match'
         11        CONCAT                                           ~13     '%2F%5Cb', !0
         12        CONCAT                                           ~14     ~13, '%5Cb%2Fi'
         13        SEND_VAL                                                 ~14
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                         $15     
         16      > JMPZ                                                     $15, ->31
   11    17    >   CAST                                          6  ~16     !4
         18        ASSIGN                                                   !5, ~16
   12    19        INIT_FCALL                                               'preg_split'
         20        CONCAT                                           ~18     '%2F%28.', !3
         21        CONCAT                                           ~19     ~18, '.%7C%5Cs%29%2F'
         22        SEND_VAL                                                 ~19
         23        SEND_VAR                                                 !5
         24        SEND_VAL                                                 -1
         25        SEND_VAL                                                 1
         26        DO_ICALL                                         $20     
         27        ASSIGN                                                   !6, $20
   13    28        INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !6
         30        DO_ICALL                                                 
    9    31    > > JMP                                                      ->9
         32    >   FE_FREE                                                  $12
   15    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
276.72 ms | 1009 KiB | 17 Q