3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['name' => 'Lorenzo']; $name = $data[’name’] ?? "Default Name"; echo $name; // equivalente a $name = isset($data[’name’]) ? $data[’name’] : "Default Name"; echo $name;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SnCQY
function name:  (null)
number of ops:  18
compiled vars:  !0 = $data, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_CONSTANT                                   ~3      '%E2%80%99name%E2%80%99'
          2        FETCH_DIM_IS                                     ~4      !0, ~3
          3        COALESCE                                         ~5      ~4
          4        QM_ASSIGN                                        ~5      'Default+Name'
          5        ASSIGN                                                   !1, ~5
    6     6        ECHO                                                     !1
    9     7        FETCH_CONSTANT                                   ~7      '%E2%80%99name%E2%80%99'
          8        ISSET_ISEMPTY_DIM_OBJ                         0          !0, ~7
          9      > JMPZ                                                     ~8, ->14
         10    >   FETCH_CONSTANT                                   ~9      '%E2%80%99name%E2%80%99'
         11        FETCH_DIM_R                                      ~10     !0, ~9
         12        QM_ASSIGN                                        ~11     ~10
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~11     'Default+Name'
         15    >   ASSIGN                                                   !1, ~11
   11    16        ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.77 ms | 1448 KiB | 13 Q