3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.42 ms | 1386 KiB | 15 Q