3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $links = array( 0 => array('productlink' => '/14/asic-company-reports', 'iconclass' => 'icon-picons-paper-2 icn'), 1 => array('productlink' => '/4/credit-and-bankruptcy', 'iconclass' => 'icon-picons-credit-card icn'), 2 => array('productlink' => '/1/business-intelligence', 'iconclass' => 'icon-picons-phone-book-2 icn'), 3 => array('productlink' => '/buy/42/apply-for-a-business-name#/step1', 'iconclass' => 'icon-picons-writing icn'), 4 => array('productlink' => '/19/asic-edge', 'iconclass' => 'icon-picons-documents-box icn'), 5 => array('productlink' => '/20/execucheck', 'iconclass' => 'icon-picons-user icn'), 6 => array('productlink' => '/buy/240/national-bankruptcy-extract', 'iconclass' => 'icon-picons-dollar icn'), 7 => array('productlink' => '/knowledgebase/4/landdata.html', 'iconclass' => 'icon-picons-location icn'), 8 => array('productlink' => '/17/policecheck', 'iconclass' => 'icon-picons-cv3 icn'), 9 => array('productlink' => '/18/PropertyReport', 'iconclass' => 'icon-picons-home-2 icn'), 10 => array('productlink' => '/3/personal-property', 'iconclass' => 'icon-picons-paper icn'), 11 => array('productlink' => '/15/vehicle-reports', 'iconclass' => 'icon-picons-car icn'), 12 => array('productlink' => '/domainchecker.php', 'iconclass' => 'icon-picons-laptop-web icn'), 13 => array('productlink' => '/5/web-services-centre', 'iconclass' => 'icon-picons-cloud-synce icn'), ); $words = array( 0 => array('title' => '/14/asic-company-reports', 'article' => 'icon-picons-paper-2 icn'), 1 => array('title' => '/4/credit-and-bankruptcy', 'article' => 'icon-picons-credit-card icn'), 2 => array('title' => '/1/business-intelligence', 'article' => 'icon-picons-phone-book-2 icn'), 3 => array('title' => '/buy/42/apply-for-a-business-name#/step1', 'article' => 'icon-picons-writing icn'), 4 => array('title' => '/19/asic-edge', 'article' => 'icon-picons-documents-box icn'), 5 => array('title' => '/20/execucheck', 'article' => 'icon-picons-user icn'), 6 => array('title' => '/buy/240/national-bankruptcy-extract', 'article' => 'icon-picons-dollar icn'), 7 => array('title' => '/knowledgebase/4/landdata.html', 'article' => 'icon-picons-location icn'), 8 => array('title' => '/17/policecheck', 'article' => 'icon-picons-cv3 icn'), 9 => array('title' => '/18/PropertyReport', 'article' => 'icon-picons-home-2 icn'), 10 => array('title' => '/3/personal-property', 'article' => 'icon-picons-paper icn'), 11 => array('title' => '/15/vehicle-reports', 'article' => 'icon-picons-car icn'), 12 => array('title' => '/domainchecker.php', 'article' => 'icon-picons-laptop-web icn'), 13 => array('title' => '/5/web-services-centre', 'article' => 'icon-picons-cloud-synce icn'), ); $count =0; $cart= array(); foreach ($words as $word) { $cart[$count] = array('title' => $word['title'], 'article' => $word['article'] ); $count++; } //var_dump($words); // after //var_dump($links); // after var_dump($cart); // after ?>
based on LAcKh
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
Jump found. Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
Jump found. Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 15
Jump found. Position 1 = -2
Branch analysis from position: 15
filename:       /in/ZurRe
function name:  (null)
number of ops:  20
compiled vars:  !0 = $links, !1 = $words, !2 = $count, !3 = $cart, !4 = $word
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   ASSIGN                                                   !0, <array>
  22     1        ASSIGN                                                   !1, <array>
  37     2        ASSIGN                                                   !2, 0
  38     3        ASSIGN                                                   !3, <array>
  39     4      > FE_RESET_R                                       $9      !1, ->15
         5    > > FE_FETCH_R                                               $9, !4, ->15
  41     6    >   FETCH_DIM_R                                      $11     !4, 'title'
         7        INIT_ARRAY                                       ~12     $11, 'title'
         8        FETCH_DIM_R                                      $13     !4, 'article'
         9        ADD_ARRAY_ELEMENT                                ~12     $13, 'article'
        10        ASSIGN_DIM                                               !3, !2
        11        OP_DATA                                                  ~12
  42    12        POST_INC                                         ~14     !2
        13        FREE                                                     ~14
        14      > JMP                                                      ->5
        15    >   FE_FREE                                                  $9
  46    16        INIT_FCALL                                               'var_dump'
        17        SEND_VAR                                                 !3
        18        DO_ICALL                                                 
        19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0