3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var[0] = array('Tokyo' => '東京', 'Osaka' => '大阪', 'Fukuoka' => '福岡'); $var[1] = array('Tokyo' => '東京?', 'Osaka' => '大阪?', 'Fukuoka' => '福岡?'); $rental_book_id = array(); foreach($var as $i){ $rental_book_id[] = $i['Osaka']; } var_dump($rental_book_id);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/ZQVIQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $var, !1 = $rental_book_id, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  <array>
    5     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  <array>
    8     4        ASSIGN                                                   !1, <array>
    9     5      > FE_RESET_R                                       $6      !0, ->11
          6    > > FE_FETCH_R                                               $6, !2, ->11
   10     7    >   FETCH_DIM_R                                      ~8      !2, 'Osaka'
          8        ASSIGN_DIM                                               !1
          9        OP_DATA                                                  ~8
    9    10      > JMP                                                      ->6
         11    >   FE_FREE                                                  $6
   12    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.5 ms | 1399 KiB | 15 Q