3v4l.org

run code in 300+ PHP versions simultaneously
<?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'], 'link' => $links[$count]['productlink'] ); $count++; } //echo $links[0]['productlink']; var_dump($words); // after //var_dump($links); // after //var_dump($cart); // after ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/vhehp
function name:  (null)
number of ops:  22
compiled vars:  !0 = $links, !1 = $words, !2 = $count, !3 = $cart, !4 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   21     1        ASSIGN                                                   !1, <array>
   37     2        ASSIGN                                                   !2, 0
   38     3        ASSIGN                                                   !3, <array>
   39     4      > FE_RESET_R                                       $9      !1, ->17
          5    > > FE_FETCH_R                                               $9, !4, ->17
   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        FETCH_DIM_R                                      ~14     !0, !2
         11        FETCH_DIM_R                                      ~15     ~14, 'productlink'
         12        ADD_ARRAY_ELEMENT                                ~12     ~15, 'link'
         13        ASSIGN_DIM                                               !3, !2
         14        OP_DATA                                                  ~12
   42    15        PRE_INC                                                  !2
   39    16      > JMP                                                      ->5
         17    >   FE_FREE                                                  $9
   45    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
   48    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.57 ms | 1387 KiB | 15 Q