3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['user'] = null; $username = $_GET['user'] ?? 'nobody'; $username = isset($_GET['user']) ? $_GET['user'] : 'nobody'; echo $username;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nlqWm
function name:  (null)
number of ops:  19
compiled vars:  !0 = $username
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $1      '_GET'
          1        ASSIGN_DIM                                               $1, 'user'
          2        OP_DATA                                                  null
    3     3        FETCH_IS                                         ~3      '_GET'
          4        FETCH_DIM_IS                                     ~4      ~3, 'user'
          5        COALESCE                                         ~5      ~4
          6        QM_ASSIGN                                        ~5      'nobody'
          7        ASSIGN                                                   !0, ~5
    4     8        FETCH_IS                                         ~7      '_GET'
          9        ISSET_ISEMPTY_DIM_OBJ                         0          ~7, 'user'
         10      > JMPZ                                                     ~8, ->15
         11    >   FETCH_R                      global              ~9      '_GET'
         12        FETCH_DIM_R                                      ~10     ~9, 'user'
         13        QM_ASSIGN                                        ~11     ~10
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~11     'nobody'
         16    >   ASSIGN                                                   !0, ~11
    5    17        ECHO                                                     !0
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.47 ms | 1393 KiB | 13 Q