3v4l.org

run code in 300+ PHP versions simultaneously
<?php $checks = []; foreach($onboarding_data as $checked) { $id = $checked->getDocument_Id()->getId(); if ($checked->getStatus() == '1') { $checks[$id] = 'checked'; continue; } $checks[$id] = ''; } foreach($document_collection as $onboarding): ?> <tr> <td> <?= $onboarding->getDocument(); ?> </td> <td align="center"> <?= anchor($onboarding->getUrl(), "Download"); ?> </td> <td class=""> <label class="option block mn"> <input type="checkbox" name="status" value="1" <?= $checks[$onboarding->getId()] ?? '' ?>> <span class="checkbox mn"></span> </label> </td> </tr> </tbody> <?php endforeach;?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 42
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 42
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
Branch analysis from position: 18
filename:       /in/iLE4E
function name:  (null)
number of ops:  44
compiled vars:  !0 = $checks, !1 = $onboarding_data, !2 = $checked, !3 = $id, !4 = $document_collection, !5 = $onboarding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $7      !1, ->18
          2    > > FE_FETCH_R                                               $7, !2, ->18
    5     3    >   INIT_METHOD_CALL                                         !2, 'getDocument_Id'
          4        DO_FCALL                                      0  $8      
          5        INIT_METHOD_CALL                                         $8, 'getId'
          6        DO_FCALL                                      0  $9      
          7        ASSIGN                                                   !3, $9
    6     8        INIT_METHOD_CALL                                         !2, 'getStatus'
          9        DO_FCALL                                      0  $11     
         10        IS_EQUAL                                                 $11, '1'
         11      > JMPZ                                                     ~12, ->15
    7    12    >   ASSIGN_DIM                                               !0, !3
         13        OP_DATA                                                  'checked'
    8    14      > JMP                                                      ->2
   10    15    >   ASSIGN_DIM                                               !0, !3
         16        OP_DATA                                                  ''
    4    17      > JMP                                                      ->2
         18    >   FE_FREE                                                  $7
   14    19      > FE_RESET_R                                       $15     !4, ->42
         20    > > FE_FETCH_R                                               $15, !5, ->42
   16    21    >   ECHO                                                     '%3Ctr%3E%0A++++%3Ctd%3E%0A++++'
   18    22        INIT_METHOD_CALL                                         !5, 'getDocument'
         23        DO_FCALL                                      0  $16     
         24        ECHO                                                     $16
   19    25        ECHO                                                     '++++%3C%2Ftd%3E%0A++++%3Ctd+align%3D%22center%22%3E%0A++++'
   21    26        INIT_FCALL_BY_NAME                                       'anchor'
         27        INIT_METHOD_CALL                                         !5, 'getUrl'
         28        DO_FCALL                                      0  $17     
         29        SEND_VAR_NO_REF_EX                                       $17
         30        SEND_VAL_EX                                              'Download'
         31        DO_FCALL                                      0  $18     
         32        ECHO                                                     $18
   22    33        ECHO                                                     '++++%3C%2Ftd%3E%0A++++%3Ctd+class%3D%22%22%3E%0A++++++++%3Clabel+class%3D%22option+block+mn%22%3E%0A++++++++++++%3Cinput+type%3D%22checkbox%22+name%3D%22status%22+value%3D%221%22+'
   25    34        INIT_METHOD_CALL                                         !5, 'getId'
         35        DO_FCALL                                      0  $19     
         36        FETCH_DIM_IS                                     ~20     !0, $19
         37        COALESCE                                         ~21     ~20
         38        QM_ASSIGN                                        ~21     ''
         39        ECHO                                                     ~21
         40        ECHO                                                     '%3E%0A++++++++++++%3Cspan+class%3D%22checkbox+mn%22%3E%3C%2Fspan%3E%0A++++++++%3C%2Flabel%3E%0A++++%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3C%2Ftbody%3E%0A'
   14    41      > JMP                                                      ->20
         42    >   FE_FREE                                                  $15
   31    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.65 ms | 1000 KiB | 13 Q