3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['checkbox_1'] = ''; $_POST['checkbox_11'] = 'ssa'; $_POST['checkbox_12'] = 'ssa'; $_POST['checkbox_30'] = ''; //$_POST['checkbox_13']; foreach($_POST as $key=>$val){ if(substr($key, 0, 9 ) != 'checkbox_') continue; if($val){ echo (int)substr($key, 9 )." "; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 33
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 33
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 32
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 32
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/qmaMi
function name:  (null)
number of ops:  35
compiled vars:  !0 = $val, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $2      '_POST'
          1        ASSIGN_DIM                                               $2, 'checkbox_1'
          2        OP_DATA                                                  ''
    3     3        FETCH_W                      global              $4      '_POST'
          4        ASSIGN_DIM                                               $4, 'checkbox_11'
          5        OP_DATA                                                  'ssa'
    4     6        FETCH_W                      global              $6      '_POST'
          7        ASSIGN_DIM                                               $6, 'checkbox_12'
          8        OP_DATA                                                  'ssa'
    5     9        FETCH_W                      global              $8      '_POST'
         10        ASSIGN_DIM                                               $8, 'checkbox_30'
         11        OP_DATA                                                  ''
    8    12        FETCH_R                      global              ~10     '_POST'
         13      > FE_RESET_R                                       $11     ~10, ->33
         14    > > FE_FETCH_R                                       ~12     $11, !0, ->33
         15    >   ASSIGN                                                   !1, ~12
    9    16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 9
         20        DO_ICALL                                         $14     
         21        IS_NOT_EQUAL                                             $14, 'checkbox_'
         22      > JMPZ                                                     ~15, ->24
         23    > > JMP                                                      ->14
   10    24    > > JMPZ                                                     !0, ->32
   11    25    >   INIT_FCALL                                               'substr'
         26        SEND_VAR                                                 !1
         27        SEND_VAL                                                 9
         28        DO_ICALL                                         $16     
         29        CAST                                          4  ~17     $16
         30        CONCAT                                           ~18     ~17, '+'
         31        ECHO                                                     ~18
    8    32    > > JMP                                                      ->14
         33    >   FE_FREE                                                  $11
   13    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.9 ms | 1396 KiB | 15 Q