3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = [ 0 => ['txn' => 1, 'doctype' => 0, 'docid' => 1534098], 1 => ['txn' => 1, 'doctype' => 4, 'docid' => 1545], 2 => ['txn' => 1, 'doctype' => 4, 'docid' => 1098554], 3 => ['txn' => 1, 'doctype' => 5, 'docid' => 1098574], 4 => ['txn' => 1, 'doctype' => 7, 'docid' => 164525], 5 => ['txn' => 1, 'doctype' => 9, 'docid' => 153246], 6 => ['txn' => 1, 'doctype' => 9, 'docid' => 1554], 7 => ['txn' => 1, 'doctype' => 9, 'docid' => 15347], 8 => ['txn' => 1, 'doctype' => 1, 'docid' => 153354], 9 => ['txn' => 1, 'doctype' => 1, 'docid' => 190755], 10 => ['txn' => 2, 'doctype' => 0, 'docid' => 1554], 11 => ['txn' => 2, 'doctype' => 4, 'docid' => 159072], 12 => ['txn' => 2, 'doctype' => 7, 'docid' => 1436527], 13 => ['txn' => 2, 'doctype' => 9, 'docid' => 15647], 14 => ['txn' => 2, 'doctype' => 1, 'docid' => 15745], 15 => ['txn' => 3, 'doctype' => 0, 'docid' => 1576274], 16 => ['txn' => 3, 'doctype' => 2, 'docid' => 15945], 17 => ['txn' => 3, 'doctype' => 4, 'docid' => 15436], 18 => ['txn' => 3, 'doctype' => 5, 'docid' => 108543], 19 => ['txn' => 3, 'doctype' => 5, 'docid' => 91592], 20 => ['txn' => 3, 'doctype' => 1, 'docid' => 15046], 21 => ['txn' => 3, 'doctype' => 1, 'docid' => 109567], 22 => ['txn' => 3, 'doctype' => 1, 'docid' => 1906735] ]; foreach ($results as $row){ $output .= 'Trans: '.$row['txn'].', DocType: '.$row['doctype'].', Doc ID: '.$row['docid']."\n"; } echo $output;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/MFh0n
function name:  (null)
number of ops:  17
compiled vars:  !0 = $results, !1 = $row, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   30     1      > FE_RESET_R                                       $4      !0, ->14
          2    > > FE_FETCH_R                                               $4, !1, ->14
   31     3    >   FETCH_DIM_R                                      ~5      !1, 'txn'
          4        CONCAT                                           ~6      'Trans%3A+', ~5
          5        CONCAT                                           ~7      ~6, '%2C+DocType%3A+'
          6        FETCH_DIM_R                                      ~8      !1, 'doctype'
          7        CONCAT                                           ~9      ~7, ~8
          8        CONCAT                                           ~10     ~9, '%2C+Doc+ID%3A+'
          9        FETCH_DIM_R                                      ~11     !1, 'docid'
         10        CONCAT                                           ~12     ~10, ~11
         11        CONCAT                                           ~13     ~12, '%0A'
         12        ASSIGN_OP                                     8          !2, ~13
   30    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $4
   34    15        ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.87 ms | 1394 KiB | 13 Q