3v4l.org

run code in 300+ PHP versions simultaneously
<?php $social_array = array( "facebook" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ), "twitter" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ), "linked-in" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ), "google-plus" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ) ); $html = '<ul>'; foreach ($social_array as $name => $group_array){ foreach ($group_array as $className => $class_array){ $html .= '<li><a href="' . $class_array['url'] . $class_array['handle'] .'" class="' . $class_array['class']. '">'. $name. '</a></li>'; } } $html .= '</ul>'; print $html; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 22
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 22
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/P0S0c
function name:  (null)
number of ops:  26
compiled vars:  !0 = $social_array, !1 = $html, !2 = $group_array, !3 = $name, !4 = $class_array, !5 = $className
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   25     1        ASSIGN                                                   !1, '%3Cul%3E'
   27     2      > FE_RESET_R                                       $8      !0, ->22
          3    > > FE_FETCH_R                                       ~9      $8, !2, ->22
          4    >   ASSIGN                                                   !3, ~9
   28     5      > FE_RESET_R                                       $11     !2, ->20
          6    > > FE_FETCH_R                                       ~12     $11, !4, ->20
          7    >   ASSIGN                                                   !5, ~12
   29     8        FETCH_DIM_R                                      ~14     !4, 'url'
          9        CONCAT                                           ~15     '%3Cli%3E%3Ca+href%3D%22', ~14
         10        FETCH_DIM_R                                      ~16     !4, 'handle'
         11        CONCAT                                           ~17     ~15, ~16
         12        CONCAT                                           ~18     ~17, '%22+class%3D%22'
         13        FETCH_DIM_R                                      ~19     !4, 'class'
         14        CONCAT                                           ~20     ~18, ~19
         15        CONCAT                                           ~21     ~20, '%22%3E'
         16        CONCAT                                           ~22     ~21, !3
         17        CONCAT                                           ~23     ~22, '%3C%2Fa%3E%3C%2Fli%3E'
         18        ASSIGN_OP                                     8          !1, ~23
   28    19      > JMP                                                      ->6
         20    >   FE_FREE                                                  $11
   27    21      > JMP                                                      ->3
         22    >   FE_FREE                                                  $8
   32    23        ASSIGN_OP                                     8          !1, '%3C%2Ful%3E'
   34    24        ECHO                                                     !1
   35    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.49 ms | 1395 KiB | 13 Q