3v4l.org

run code in 500+ PHP versions simultaneously
<?php $table = 'pages'; $GLOBALS['TCA'][$table]['ctrl']['versioningWS'] = true; $recordArray = ['t3ver_oid' => 0]; if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS'] ?? false && $recordArray['t3ver_oid'] > 0) { echo 'YES'; } $outsideCheck = $GLOBALS['TCA'][$table]['ctrl']['versioningWS'] ?? false; if ($outsideCheck && $recordArray['t3ver_oid'] > 0) { echo 'FROM OUTSIDE'; } else { echo 'BUT NOT IF SEPARATE'; } if (true ?? false && 0 > 0) { echo ' SIMPLE IS TRUE '; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
Branch analysis from position: 34
Branch analysis from position: 26
Branch analysis from position: 15
filename:       /in/Qq5X7
function name:  (null)
number of ops:  35
compiled vars:  !0 = $table, !1 = $recordArray, !2 = $outsideCheck
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'pages'
    3     1        FETCH_W                          global              $4      'TCA'
          2        FETCH_DIM_W                                          $5      $4, !0
          3        FETCH_DIM_W                                          $6      $5, 'ctrl'
          4        ASSIGN_DIM                                                   $6, 'versioningWS'
          5        OP_DATA                                                      <true>
    4     6        ASSIGN                                                       !1, <array>
    5     7        FETCH_IS                                             ~9      'TCA'
          8        FETCH_DIM_IS                                         ~10     ~9, !0
          9        FETCH_DIM_IS                                         ~11     ~10, 'ctrl'
         10        FETCH_DIM_IS                                         ~12     ~11, 'versioningWS'
         11        COALESCE                                             ~13     ~12
         12        QM_ASSIGN                                            ~13     <false>
         13      > JMPZ                                                         ~13, ->15
    6    14    >   ECHO                                                         'YES'
    9    15    >   FETCH_IS                                             ~14     'TCA'
         16        FETCH_DIM_IS                                         ~15     ~14, !0
         17        FETCH_DIM_IS                                         ~16     ~15, 'ctrl'
         18        FETCH_DIM_IS                                         ~17     ~16, 'versioningWS'
         19        COALESCE                                             ~18     ~17
         20        QM_ASSIGN                                            ~18     <false>
         21        ASSIGN                                                       !2, ~18
   10    22      > JMPZ_EX                                              ~20     !2, ->26
         23    >   FETCH_DIM_R                                          ~21     !1, 't3ver_oid'
         24        IS_SMALLER                                           ~22     0, ~21
         25        BOOL                                                 ~20     ~22
         26    > > JMPZ                                                         ~20, ->29
   11    27    >   ECHO                                                         'FROM+OUTSIDE'
   10    28      > JMP                                                          ->30
   13    29    >   ECHO                                                         'BUT+NOT+IF+SEPARATE'
   18    30    >   COALESCE                                             ~23     <true>
         31        QM_ASSIGN                                            ~23     <false>
         32      > JMPZ                                                         ~23, ->34
   19    33    >   ECHO                                                         '%0ASIMPLE+IS+TRUE%0A'
   22    34    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
147.04 ms | 488 KiB | 9 Q