3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = Array( "581095389012"=>Array(21,21,21), "112341234123"=>Array(25,25,25) ); function convertMultiArrayValuesToHistoryInformation($array){ foreach($array as $key=>$value){ echo '<div>Reference number: '.$key; foreach($value as $k=>$v){ echo '<br><span>Product id: getproductname('.$v.')</span>'; } echo '</div>'; } } convertMultiArrayValuesToHistoryInformation($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pqp2i
function name:  (null)
number of ops:  6
compiled vars:  !0 = $array
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   ASSIGN                                                   !0, <array>
   9     1        NOP                                                      
  21     2        INIT_FCALL                                               'convertmultiarrayvaluestohistoryinformation'
         3        SEND_VAR                                                 !0
         4        DO_FCALL                                      0          
         5      > RETURN                                                   1

Function convertmultiarrayvaluestohistoryinformation:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/pqp2i
function name:  convertMultiArrayValuesToHistoryInformation
number of ops:  18
compiled vars:  !0 = $array, !1 = $value, !2 = $key, !3 = $v, !4 = $k
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E >   RECV                                             !0      
  10     1      > FE_RESET_R                                       $5      !0, ->16
         2    > > FE_FETCH_R                                       ~6      $5, !1, ->16
         3    >   ASSIGN                                                   !2, ~6
  11     4        CONCAT                                           ~8      '%3Cdiv%3EReference+number%3A+', !2
         5        ECHO                                                     ~8
  12     6      > FE_RESET_R                                       $9      !1, ->13
         7    > > FE_FETCH_R                                       ~10     $9, !3, ->13
         8    >   ASSIGN                                                   !4, ~10
  13     9        CONCAT                                           ~12     '%3Cbr%3E%3Cspan%3EProduct+id%3A+getproductname%28', !3
        10        CONCAT                                           ~13     ~12, '%29%3C%2Fspan%3E'
        11        ECHO                                                     ~13
        12      > JMP                                                      ->7
        13    >   FE_FREE                                                  $9
  15    14        ECHO                                                     '%3C%2Fdiv%3E'
        15      > JMP                                                      ->2
        16    >   FE_FREE                                                  $5
  18    17      > RETURN                                                   null

End of function convertmultiarrayvaluestohistoryinformation

Generated using Vulcan Logic Dumper, using php 7.3.0