3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $action = $p['action'] ?: 'index'; $action = @$p['action'] ?: 'index'; $action = $p['action'] ?? 'index';
based on W1q6U
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/LiUak
function name:  (null)
number of ops:  15
compiled vars:  !0 = $action, !1 = $p
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   FETCH_DIM_R                                      $2      !1, 'action'
         1        JMP_SET                                          ~3      $2, ->3
         2        QM_ASSIGN                                        ~3      'index'
         3        ASSIGN                                                   !0, ~3
   4     4        BEGIN_SILENCE                                    ~5      
         5        FETCH_DIM_R                                      $6      !1, 'action'
         6        END_SILENCE                                              ~5
         7        JMP_SET                                          ~7      $6, ->9
         8        QM_ASSIGN                                        ~7      'index'
         9        ASSIGN                                                   !0, ~7
   5    10        FETCH_DIM_IS                                     $9      !1, 'action'
        11        COALESCE                                         ~10     $9
        12        QM_ASSIGN                                        ~10     'index'
        13        ASSIGN                                                   !0, ~10
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0