3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = [ 2 => "gibberish", 5 => "garbage", 38 => 'x._domainkey 14400 IN TXT ( "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApYA+ELn4SxsERDFgUB9pUnB4PjbcUlSJoLHAlCq1MLVA3NxgLKSAz+lSczyMH97Y/xOpJf1X1LSoGgNh5GVRn0t"', 39 => '"pm1QOPfKbNHx8VMNn4L/KZSPGFyySDUK/UPnF1QoMckoU5a/LgtI8x1ttry5oySDTY9KprVAf92uK6pOFQJA3QlzV2P+R4tx/zho5KlDHmc8YKjL7rLjgQVX7GUBi9cHr0+BQdVFgFL8SwBY8fn/CQ"', 40 => '"42JMsEWcMjjEkbAwi9yscGQoTih+kctjr4W8LDF28vyJixozbaFpG8pJ+jGDAho+Zjt/XReOZQP0h51Y8md3/x/F0+gST4mn0mCskNtIQIDAQAB"' ]; foreach ($records as $i => $record) { if (stripos($record, "domainkey") !== false) { $initialIndex = $i; break; } } echo substr($records[$initialIndex], 0, -1).trim($records[$initialIndex+1], '"').trim($records[$initialIndex+2], '"')."\")";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
Branch analysis from position: 13
filename:       /in/Gkihu
function name:  (null)
number of ops:  37
compiled vars:  !0 = $records, !1 = $record, !2 = $i, !3 = $initialIndex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $5      !0, ->13
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->13
          3    >   ASSIGN                                                   !2, ~6
   10     4        INIT_FCALL                                               'stripos'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'domainkey'
          7        DO_ICALL                                         $8      
          8        TYPE_CHECK                                  1018          $8
          9      > JMPZ                                                     ~9, ->12
   11    10    >   ASSIGN                                                   !3, !2
   12    11      > JMP                                                      ->13
    9    12    > > JMP                                                      ->2
         13    >   FE_FREE                                                  $5
   15    14        INIT_FCALL                                               'substr'
         15        FETCH_DIM_R                                      ~11     !0, !3
         16        SEND_VAL                                                 ~11
         17        SEND_VAL                                                 0
         18        SEND_VAL                                                 -1
         19        DO_ICALL                                         $12     
         20        INIT_FCALL                                               'trim'
         21        ADD                                              ~13     !3, 1
         22        FETCH_DIM_R                                      ~14     !0, ~13
         23        SEND_VAL                                                 ~14
         24        SEND_VAL                                                 '%22'
         25        DO_ICALL                                         $15     
         26        CONCAT                                           ~16     $12, $15
         27        INIT_FCALL                                               'trim'
         28        ADD                                              ~17     !3, 2
         29        FETCH_DIM_R                                      ~18     !0, ~17
         30        SEND_VAL                                                 ~18
         31        SEND_VAL                                                 '%22'
         32        DO_ICALL                                         $19     
         33        CONCAT                                           ~20     ~16, $19
         34        CONCAT                                           ~21     ~20, '%22%29'
         35        ECHO                                                     ~21
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1013 KiB | 16 Q