3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.13 ms | 1393 KiB | 13 Q