3v4l.org

run code in 500+ PHP versions simultaneously
<?php // An indexed array of programming languages $languages = ['PHP', 'JavaScript', 'Python', 'Go']; // Accessing elements by their index echo "The second language is: " . $languages[1] . PHP_EOL; // Index 1 is the second element // To see the whole array structure, use print_r() or var_dump() print_r($languages);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1uHMI
function name:  (null)
number of ops:  9
compiled vars:  !0 = $languages
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    7     1        FETCH_DIM_R                                          ~2      !0, 1
          2        CONCAT                                               ~3      'The+second+language+is%3A+', ~2
          3        CONCAT                                               ~4      ~3, '%0A'
          4        ECHO                                                         ~4
   10     5        INIT_FCALL                                                   'print_r'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
180.87 ms | 484 KiB | 10 Q