3v4l.org

run code in 300+ PHP versions simultaneously
<?php // AnyKeyArray - https://gist.github.com/vrana/5581788 $article_tags = new AnyKeyArray(); // 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 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/o36fo
function name:  (null)
number of ops:  20
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 >   NEW                                              $6      'AnyKeyArray'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
    6     3        INIT_ARRAY                                       ~9      !1, 'article_id'
          4        ADD_ARRAY_ELEMENT                                ~9      !2, 'tag_id'
          5        ASSIGN_DIM                                               !0, ~9
          6        OP_DATA                                                  !3
    7     7        INIT_ARRAY                                       ~11     !1, 'article_id'
          8        ADD_ARRAY_ELEMENT                                ~11     !2, 'tag_id'
          9        FETCH_DIM_R                                      ~12     !0, ~11
         10        ECHO                                                     ~12
    9    11      > FE_RESET_R                                       $13     !0, ->18
         12    > > FE_FETCH_R                                       ~14     $13, !4, ->18
         13    >   ASSIGN                                                   !5, ~14
   10    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !5
         16        DO_ICALL                                                 
    9    17      > JMP                                                      ->12
         18    >   FE_FREE                                                  $13
   12    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.53 ms | 1395 KiB | 15 Q