3v4l.org

run code in 300+ PHP versions simultaneously
<?php // AnyKeyArray - https://gist.github.com/vrana/5581788 $article_tags = array(); // Tohle šlo už dřív. $article_tags[array("article_id" => $article_id, "tag_id" => $tag_id)] = $article_tag; echo $article_tags[array("article_id" => $article_id, "tag_id" => $tag_id)]; // Tohle funguje až v PHP 5.5. foreach ($article_tags as $key => $val) { print_r($key); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/WWZrU
function name:  (null)
number of ops:  18
compiled vars:  !0 = $article_tags, !1 = $article_id, !2 = $tag_id, !3 = $article_tag, !4 = $val, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_ARRAY                                       ~7      !1, 'article_id'
          2        ADD_ARRAY_ELEMENT                                ~7      !2, 'tag_id'
          3        ASSIGN_DIM                                               !0, ~7
          4        OP_DATA                                                  !3
    7     5        INIT_ARRAY                                       ~9      !1, 'article_id'
          6        ADD_ARRAY_ELEMENT                                ~9      !2, 'tag_id'
          7        FETCH_DIM_R                                      ~10     !0, ~9
          8        ECHO                                                     ~10
    9     9      > FE_RESET_R                                       $11     !0, ->16
         10    > > FE_FETCH_R                                       ~12     $11, !4, ->16
         11    >   ASSIGN                                                   !5, ~12
   10    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !5
         14        DO_ICALL                                                 
    9    15      > JMP                                                      ->10
         16    >   FE_FREE                                                  $11
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.53 ms | 1395 KiB | 15 Q