3v4l.org

run code in 500+ 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 = 29
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 29
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 28
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 28
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/1jMEN
function name:  (null)
number of ops:  31
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, ->29
          9    > > FE_FETCH_R                                                   $12, !4, ->29
   10    10    >   CONCAT                                               ~13     '%2F%5Cb', !0
         11        CONCAT                                               ~14     ~13, '%5Cb%2Fi'
         12        FRAMELESS_ICALL_2                preg_match          ~15     ~14, !4
         13      > JMPZ                                                         ~15, ->28
   11    14    >   CAST                                              6  ~16     !4
         15        ASSIGN                                                       !5, ~16
   12    16        INIT_FCALL                                                   'preg_split'
         17        CONCAT                                               ~18     '%2F%28.', !3
         18        CONCAT                                               ~19     ~18, '.%7C%5Cs%29%2F'
         19        SEND_VAL                                                     ~19
         20        SEND_VAR                                                     !5
         21        SEND_VAL                                                     -1
         22        SEND_VAL                                                     1
         23        DO_ICALL                                             $20     
         24        ASSIGN                                                       !6, $20
   13    25        INIT_FCALL                                                   'print_r'
         26        SEND_VAR                                                     !6
         27        DO_ICALL                                                     
    9    28    > > JMP                                                          ->9
         29    >   FE_FREE                                                      $12
   15    30      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.48 ms | 2168 KiB | 16 Q