3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "SELECT naam, datum,sum(duuropdracht) FROM `ploegopdrachten` WHERE datum = '$timewo' GROUP BY naam"; if ($result = mysqli_query($connect, $query)) { while ($get = mysqli_fetch_assoc($result)) { echo "<tr><td>", $get['naam'], "</td>"; echo "<td>", $get['datum'], "</td>"; echo "<td>", $get['sum(duuropdracht)'], " uur </td>"; $query1 = "SELECT urenpdag FROM `ploegen` where naam = '$get[naam]'"; if($query2 = mysqli_query($connect, $query1)){ while($get2 = mysqli_fetch_assoc($query2)){ echo "<td>", $get2['urenpdag'], "</td></tr>"; } } } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 49
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 11
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 44
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 35
Branch analysis from position: 44
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 35
Branch analysis from position: 44
Branch analysis from position: 35
Branch analysis from position: 44
Branch analysis from position: 49
filename:       /in/2YN8Z
function name:  (null)
number of ops:  50
compiled vars:  !0 = $query, !1 = $timewo, !2 = $result, !3 = $connect, !4 = $get, !5 = $query1, !6 = $query2, !7 = $get2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ROPE_INIT                                     3  ~9      'SELECT+naam%2C+datum%2Csum%28duuropdracht%29+FROM+%60ploegopdrachten%60+WHERE+datum+%3D+%27'
          1        ROPE_ADD                                      1  ~9      ~9, !1
          2        ROPE_END                                      2  ~8      ~9, '%27+GROUP+BY+naam'
          3        ASSIGN                                                   !0, ~8
    3     4        INIT_FCALL_BY_NAME                                       'mysqli_query'
          5        SEND_VAR_EX                                              !3
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $12     
          8        ASSIGN                                           ~13     !2, $12
          9      > JMPZ                                                     ~13, ->49
    4    10    > > JMP                                                      ->44
    6    11    >   ECHO                                                     '%3Ctr%3E%3Ctd%3E'
         12        FETCH_DIM_R                                      ~14     !4, 'naam'
         13        ECHO                                                     ~14
         14        ECHO                                                     '%3C%2Ftd%3E'
    7    15        ECHO                                                     '%3Ctd%3E'
         16        FETCH_DIM_R                                      ~15     !4, 'datum'
         17        ECHO                                                     ~15
         18        ECHO                                                     '%3C%2Ftd%3E'
    8    19        ECHO                                                     '%3Ctd%3E'
         20        FETCH_DIM_R                                      ~16     !4, 'sum%28duuropdracht%29'
         21        ECHO                                                     ~16
         22        ECHO                                                     '+uur+%3C%2Ftd%3E'
   10    23        ROPE_INIT                                     3  ~19     'SELECT+urenpdag+FROM+%60ploegen%60+where+naam+%3D+%27'
         24        FETCH_DIM_R                                      ~17     !4, 'naam'
         25        ROPE_ADD                                      1  ~19     ~19, ~17
         26        ROPE_END                                      2  ~18     ~19, '%27'
         27        ASSIGN                                                   !5, ~18
   11    28        INIT_FCALL_BY_NAME                                       'mysqli_query'
         29        SEND_VAR_EX                                              !3
         30        SEND_VAR_EX                                              !5
         31        DO_FCALL                                      0  $22     
         32        ASSIGN                                           ~23     !6, $22
         33      > JMPZ                                                     ~23, ->44
   12    34    > > JMP                                                      ->39
   14    35    >   ECHO                                                     '%3Ctd%3E'
         36        FETCH_DIM_R                                      ~24     !7, 'urenpdag'
         37        ECHO                                                     ~24
         38        ECHO                                                     '%3C%2Ftd%3E%3C%2Ftr%3E'
   12    39    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_assoc'
         40        SEND_VAR_EX                                              !6
         41        DO_FCALL                                      0  $25     
         42        ASSIGN                                           ~26     !7, $25
         43      > JMPNZ                                                    ~26, ->35
    4    44    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_assoc'
         45        SEND_VAR_EX                                              !2
         46        DO_FCALL                                      0  $27     
         47        ASSIGN                                           ~28     !4, $27
         48      > JMPNZ                                                    ~28, ->11
   19    49    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1399 KiB | 13 Q