3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = (object)array('type' => 3); $myarray[] = array( 'class' => 'bootstrap.widgets.TbButtonColumn', //кнопка добавления данных 'template' => '{add}', 'visible'=> $data->type == 3, ); var_export($myarray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/baiO8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $data, !1 = $myarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~2      <array>
          1        ASSIGN                                                   !0, ~2
    5     2        INIT_ARRAY                                       ~5      'bootstrap.widgets.TbButtonColumn', 'class'
    6     3        ADD_ARRAY_ELEMENT                                ~5      '%7Badd%7D', 'template'
    7     4        FETCH_OBJ_R                                      ~6      !0, 'type'
          5        IS_EQUAL                                         ~7      ~6, 3
          6        ADD_ARRAY_ELEMENT                                ~5      ~7, 'visible'
    4     7        ASSIGN_DIM                                               !1
    7     8        OP_DATA                                                  ~5
    9     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.11 ms | 1009 KiB | 14 Q