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(strpos($a, $search_a) !== false) { $a_array = "$a"; $a_record_output = preg_split('/(.'.$domain.'.|\s)/', $a_array, -1, PREG_SPLIT_NO_EMPTY); if ($a_record_output[1] !== "A") continue; print_r($a_record_output); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 35
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 35
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 34
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 34
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/1WJfc
function name:  (null)
number of ops:  37
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, ->35
          9    > > FE_FETCH_R                                               $12, !4, ->35
   10    10    >   INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !4
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $13     
         14        TYPE_CHECK                                  1018          $13
         15      > JMPZ                                                     ~14, ->34
   11    16    >   CAST                                          6  ~15     !4
         17        ASSIGN                                                   !5, ~15
   12    18        INIT_FCALL                                               'preg_split'
         19        CONCAT                                           ~17     '%2F%28.', !3
         20        CONCAT                                           ~18     ~17, '.%7C%5Cs%29%2F'
         21        SEND_VAL                                                 ~18
         22        SEND_VAR                                                 !5
         23        SEND_VAL                                                 -1
         24        SEND_VAL                                                 1
         25        DO_ICALL                                         $19     
         26        ASSIGN                                                   !6, $19
   13    27        FETCH_DIM_R                                      ~21     !6, 1
         28        IS_NOT_IDENTICAL                                         ~21, 'A'
         29      > JMPZ                                                     ~22, ->31
         30    > > JMP                                                      ->9
   14    31    >   INIT_FCALL                                               'print_r'
         32        SEND_VAR                                                 !6
         33        DO_ICALL                                                 
    9    34    > > JMP                                                      ->9
         35    >   FE_FREE                                                  $12
   16    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.02 ms | 1018 KiB | 17 Q