3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['action'] = 'value'; // Example usage for: Null Coalesce Operator $action = $_POST['action'] ?? 'default'; // The above is identical to this if/else statement if (isset($_POST['action'])) { $action = $_POST['action']; } else { $action = 'default'; } var_dump($action); $_POST['action'] = null; // Example usage for: Null Coalesce Operator $action = $_POST['action'] ?? 'default'; // The above is identical to this if/else statement if (isset($_POST['action'])) { $action = $_POST['action']; } else { $action = 'default'; } var_dump($action);
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
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
Branch analysis from position: 34
filename:       /in/PR86b
function name:  (null)
number of ops:  39
compiled vars:  !0 = $action
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_POST'
          1        ASSIGN_DIM                                               $1, 'action'
          2        OP_DATA                                                  'value'
    6     3        FETCH_IS                                         ~3      '_POST'
          4        FETCH_DIM_IS                                     ~4      ~3, 'action'
          5        COALESCE                                         ~5      ~4
          6        QM_ASSIGN                                        ~5      'default'
          7        ASSIGN                                                   !0, ~5
    9     8        FETCH_IS                                         ~7      '_POST'
          9        ISSET_ISEMPTY_DIM_OBJ                         0          ~7, 'action'
         10      > JMPZ                                                     ~8, ->15
   10    11    >   FETCH_R                      global              ~9      '_POST'
         12        FETCH_DIM_R                                      ~10     ~9, 'action'
         13        ASSIGN                                                   !0, ~10
         14      > JMP                                                      ->16
   12    15    >   ASSIGN                                                   !0, 'default'
   15    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   17    19        FETCH_W                      global              $14     '_POST'
         20        ASSIGN_DIM                                               $14, 'action'
         21        OP_DATA                                                  null
   20    22        FETCH_IS                                         ~16     '_POST'
         23        FETCH_DIM_IS                                     ~17     ~16, 'action'
         24        COALESCE                                         ~18     ~17
         25        QM_ASSIGN                                        ~18     'default'
         26        ASSIGN                                                   !0, ~18
   23    27        FETCH_IS                                         ~20     '_POST'
         28        ISSET_ISEMPTY_DIM_OBJ                         0          ~20, 'action'
         29      > JMPZ                                                     ~21, ->34
   24    30    >   FETCH_R                      global              ~22     '_POST'
         31        FETCH_DIM_R                                      ~23     ~22, 'action'
         32        ASSIGN                                                   !0, ~23
         33      > JMP                                                      ->35
   26    34    >   ASSIGN                                                   !0, 'default'
   29    35    >   INIT_FCALL                                               'var_dump'
         36        SEND_VAR                                                 !0
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.41 ms | 1400 KiB | 15 Q