3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.54 ms | 1399 KiB | 15 Q