3v4l.org

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

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.18 ms | 1397 KiB | 17 Q