3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['area' => 'bar', 'region' => 'foo']; $newArray = ['area' => '', 'region' => 'foo']; var_dump($array['area'] ?? $array['region']); var_dump($newArray['area'] ?? $newArray['region']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jvWYW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'var_dump'
          3        FETCH_DIM_IS                                     ~4      !0, 'area'
          4        COALESCE                                         ~5      ~4
          5        FETCH_DIM_R                                      ~6      !0, 'region'
          6        QM_ASSIGN                                        ~5      ~6
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_IS                                     ~8      !1, 'area'
         11        COALESCE                                         ~9      ~8
         12        FETCH_DIM_R                                      ~10     !1, 'region'
         13        QM_ASSIGN                                        ~9      ~10
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.46 ms | 1394 KiB | 15 Q