3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_numerals = Array( "2" => "two", "3" => "three", "4" => "four", "5" => "five", "6" => "six", "7" => "seven" ); $array_two = Array ( "0" => "$100", "1" => "$200", "2" => "$300" ); $i=2;$j=0; $arr = compact("array_".$array_numerals[$i]); echo ($arr["array_two"][0])."\n"; echo ($arr["array_".$array_numerals[$i]][0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iHEbf
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array_numerals, !1 = $array_two, !2 = $i, !3 = $j, !4 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   19     2        ASSIGN                                                   !2, 2
          3        ASSIGN                                                   !3, 0
   21     4        INIT_FCALL                                               'compact'
          5        FETCH_DIM_R                                      ~9      !0, !2
          6        CONCAT                                           ~10     'array_', ~9
          7        SEND_VAL                                                 ~10
          8        DO_ICALL                                         $11     
          9        ASSIGN                                                   !4, $11
   22    10        FETCH_DIM_R                                      ~13     !4, 'array_two'
         11        FETCH_DIM_R                                      ~14     ~13, 0
         12        CONCAT                                           ~15     ~14, '%0A'
         13        ECHO                                                     ~15
   23    14        FETCH_DIM_R                                      ~16     !0, !2
         15        CONCAT                                           ~17     'array_', ~16
         16        FETCH_DIM_R                                      ~18     !4, ~17
         17        FETCH_DIM_R                                      ~19     ~18, 0
         18        ECHO                                                     ~19
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.7 ms | 1010 KiB | 14 Q