3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Testdata $_SESSION['input']['1'] = ''; $_SESSION['input']['2'] = 'JA'; $_SESSION['input']['3'] = null; $_SESSION['input']['4'] = ''; $_SESSION['input']['5'] = 'JA'; $_SESSION['input']['6'] = ''; // Aantal ingevulde inputs tellen $telling = count(array_filter($_SESSION['input'])); // Bedrag bepalen $bedrag = $telling < 3 ? $telling * 8.5 : 20; // Voilá var_dump($bedrag); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7QG32
function name:  (null)
number of ops:  42
compiled vars:  !0 = $telling, !1 = $bedrag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $2      '_SESSION'
          1        FETCH_DIM_W                                      $3      $2, 'input'
          2        ASSIGN_DIM                                               $3, 1
          3        OP_DATA                                                  ''
    4     4        FETCH_W                      global              $5      '_SESSION'
          5        FETCH_DIM_W                                      $6      $5, 'input'
          6        ASSIGN_DIM                                               $6, 2
          7        OP_DATA                                                  'JA'
    5     8        FETCH_W                      global              $8      '_SESSION'
          9        FETCH_DIM_W                                      $9      $8, 'input'
         10        ASSIGN_DIM                                               $9, 3
         11        OP_DATA                                                  null
    6    12        FETCH_W                      global              $11     '_SESSION'
         13        FETCH_DIM_W                                      $12     $11, 'input'
         14        ASSIGN_DIM                                               $12, 4
         15        OP_DATA                                                  ''
    7    16        FETCH_W                      global              $14     '_SESSION'
         17        FETCH_DIM_W                                      $15     $14, 'input'
         18        ASSIGN_DIM                                               $15, 5
         19        OP_DATA                                                  'JA'
    8    20        FETCH_W                      global              $17     '_SESSION'
         21        FETCH_DIM_W                                      $18     $17, 'input'
         22        ASSIGN_DIM                                               $18, 6
         23        OP_DATA                                                  ''
   11    24        INIT_FCALL                                               'array_filter'
         25        FETCH_R                      global              ~20     '_SESSION'
         26        FETCH_DIM_R                                      ~21     ~20, 'input'
         27        SEND_VAL                                                 ~21
         28        DO_ICALL                                         $22     
         29        COUNT                                            ~23     $22
         30        ASSIGN                                                   !0, ~23
   14    31        IS_SMALLER                                               !0, 3
         32      > JMPZ                                                     ~25, ->36
         33    >   MUL                                              ~26     !0, 8.5
         34        QM_ASSIGN                                        ~27     ~26
         35      > JMP                                                      ->37
         36    >   QM_ASSIGN                                        ~27     20
         37    >   ASSIGN                                                   !1, ~27
   17    38        INIT_FCALL                                               'var_dump'
         39        SEND_VAR                                                 !1
         40        DO_ICALL                                                 
   18    41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.8 ms | 1400 KiB | 17 Q