3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->first = 1; $b = array($a->first, $a->second ?: NULL);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DsRb2
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'first'
          4        OP_DATA                                                  1
    6     5        FETCH_OBJ_R                                      ~6      !0, 'first'
          6        INIT_ARRAY                                       ~7      ~6
          7        FETCH_OBJ_R                                      ~8      !0, 'second'
          8        JMP_SET                                          ~9      ~8, ->10
          9        QM_ASSIGN                                        ~9      null
         10        ADD_ARRAY_ELEMENT                                ~7      ~9
         11        ASSIGN                                                   !1, ~7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.87 ms | 1440 KiB | 13 Q