3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prop_def['type'] = [NULL, 'string']; $type = $prop_def['type'] ?? 'null'; \var_dump($type);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lfJ6e
function name:  (null)
number of ops:  10
compiled vars:  !0 = $prop_def, !1 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'type'
          1        OP_DATA                                                  <array>
    4     2        FETCH_DIM_IS                                     ~3      !0, 'type'
          3        COALESCE                                         ~4      ~3
          4        QM_ASSIGN                                        ~4      'null'
          5        ASSIGN                                                   !1, ~4
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.22 ms | 1424 KiB | 14 Q