3v4l.org

run code in 300+ PHP versions simultaneously
<?php $export = array(); $view = new stdClass(); $view->name = 'first_view'; $view->value = 'first_view_value'; $export[$view->name] = $view; $view = new stdClass(); $view->name = 'second_view'; $view->value = 'second_view_value'; $export[$view->name] = $view; var_dump($export);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SL0Lt
function name:  (null)
number of ops:  25
compiled vars:  !0 = $export, !1 = $view
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    6     4        ASSIGN_OBJ                                               !1, 'name'
          5        OP_DATA                                                  'first_view'
    7     6        ASSIGN_OBJ                                               !1, 'value'
          7        OP_DATA                                                  'first_view_value'
    9     8        FETCH_OBJ_R                                      ~8      !1, 'name'
          9        ASSIGN_DIM                                               !0, ~8
         10        OP_DATA                                                  !1
   11    11        NEW                                              $10     'stdClass'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !1, $10
   12    14        ASSIGN_OBJ                                               !1, 'name'
         15        OP_DATA                                                  'second_view'
   13    16        ASSIGN_OBJ                                               !1, 'value'
         17        OP_DATA                                                  'second_view_value'
   15    18        FETCH_OBJ_R                                      ~15     !1, 'name'
         19        ASSIGN_DIM                                               !0, ~15
         20        OP_DATA                                                  !1
   17    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.66 ms | 1395 KiB | 15 Q