3v4l.org

run code in 300+ PHP versions simultaneously
<?php $action = $p['action'] ?: 'index_false'; echo $action."\n"; $action = @$p['action'] ?: 'index_false_wn'; echo $action."\n"; $action = $p['action'] ?? 'index_null'; echo $action."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fmmid
function name:  (null)
number of ops:  21
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_false'
          3        ASSIGN                                                   !0, ~3
    4     4        CONCAT                                           ~5      !0, '%0A'
          5        ECHO                                                     ~5
    5     6        BEGIN_SILENCE                                    ~6      
          7        FETCH_DIM_R                                      ~7      !1, 'action'
          8        END_SILENCE                                              ~6
          9        JMP_SET                                          ~8      ~7, ->11
         10        QM_ASSIGN                                        ~8      'index_false_wn'
         11        ASSIGN                                                   !0, ~8
    6    12        CONCAT                                           ~10     !0, '%0A'
         13        ECHO                                                     ~10
    7    14        FETCH_DIM_IS                                     ~11     !1, 'action'
         15        COALESCE                                         ~12     ~11
         16        QM_ASSIGN                                        ~12     'index_null'
         17        ASSIGN                                                   !0, ~12
    8    18        CONCAT                                           ~14     !0, '%0A'
         19        ECHO                                                     ~14
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.23 ms | 1394 KiB | 13 Q