3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getArray() { return array(1, 2, 3); } // on PHP 5.4 $secondElement = getArray()[1]; // previously $tmp = getArray(); $secondElement = $tmp[1]; // or list(, $secondElement) = getArray(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PdUvc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $secondElement, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'getarray'
          1        DO_FCALL                                      0  $2      
          2        FETCH_DIM_R                                      ~3      $2, 1
          3        ASSIGN                                                   !0, ~3
   10     4        INIT_FCALL                                               'getarray'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
   11     7        FETCH_DIM_R                                      ~7      !1, 1
          8        ASSIGN                                                   !0, ~7
   14     9        INIT_FCALL                                               'getarray'
         10        DO_FCALL                                      0  $9      
         11        FETCH_LIST_R                                     $10     $9, 1
         12        ASSIGN                                                   !0, $10
         13        FREE                                                     $9
   15    14      > RETURN                                                   1

Function getarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PdUvc
function name:  getArray
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   <array>
    4     1*     > RETURN                                                   null

End of function getarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.46 ms | 1401 KiB | 16 Q