3v4l.org

run code in 300+ PHP versions simultaneously
<?Php require "config.php"; // Database connection $count="SELECT id,name, social, math, science, sum(social + math + science ) as total, sum(social + math + science )/3 as avg from student3 group by id"; echo "<table>"; echo "<tr><th>id</th><th>name</th><th>social</th><th>math</th><th>science</th><th>total</th><th>avg</th></tr>"; foreach ($dbo->query($count) as $row) { echo "<tr ><td>$row[id]</td><td>$row[name]</td><td>$row[social]</td><td>$row[math]</td><td>$row[science]</td><td>$row[total]</td><td>$row[avg]</td></tr>"; } echo "</table>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 33
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 33
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/LNWto
function name:  (null)
number of ops:  36
compiled vars:  !0 = $count, !1 = $dbo, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'config.php', REQUIRE
    4     1        ASSIGN                                                   !0, 'SELECT+id%2Cname%2C+social%2C+math%2C+science%2C+sum%28social+%2B+math+%2B+science+%29+as+total%2C+sum%28social+%2B+math+%2B+science+%29%2F3+as+avg+from+student3+group+by+id'
    6     2        ECHO                                                     '%3Ctable%3E'
    7     3        ECHO                                                     '%3Ctr%3E%3Cth%3Eid%3C%2Fth%3E%3Cth%3Ename%3C%2Fth%3E%3Cth%3Esocial%3C%2Fth%3E%3Cth%3Emath%3C%2Fth%3E%3Cth%3Escience%3C%2Fth%3E%3Cth%3Etotal%3C%2Fth%3E%3Cth%3Eavg%3C%2Fth%3E%3C%2Ftr%3E'
    8     4        INIT_METHOD_CALL                                         !1, 'query'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $5      
          7      > FE_RESET_R                                       $6      $5, ->33
          8    > > FE_FETCH_R                                               $6, !2, ->33
    9     9    >   ROPE_INIT                                    15  ~15     '%3Ctr+%3E%3Ctd%3E'
         10        FETCH_DIM_R                                      ~7      !2, 'id'
         11        ROPE_ADD                                      1  ~15     ~15, ~7
         12        ROPE_ADD                                      2  ~15     ~15, '%3C%2Ftd%3E%3Ctd%3E'
         13        FETCH_DIM_R                                      ~8      !2, 'name'
         14        ROPE_ADD                                      3  ~15     ~15, ~8
         15        ROPE_ADD                                      4  ~15     ~15, '%3C%2Ftd%3E%3Ctd%3E'
         16        FETCH_DIM_R                                      ~9      !2, 'social'
         17        ROPE_ADD                                      5  ~15     ~15, ~9
         18        ROPE_ADD                                      6  ~15     ~15, '%3C%2Ftd%3E%3Ctd%3E'
         19        FETCH_DIM_R                                      ~10     !2, 'math'
         20        ROPE_ADD                                      7  ~15     ~15, ~10
         21        ROPE_ADD                                      8  ~15     ~15, '%3C%2Ftd%3E%3Ctd%3E'
         22        FETCH_DIM_R                                      ~11     !2, 'science'
         23        ROPE_ADD                                      9  ~15     ~15, ~11
         24        ROPE_ADD                                     10  ~15     ~15, '%3C%2Ftd%3E%3Ctd%3E'
         25        FETCH_DIM_R                                      ~12     !2, 'total'
         26        ROPE_ADD                                     11  ~15     ~15, ~12
         27        ROPE_ADD                                     12  ~15     ~15, '%3C%2Ftd%3E%3Ctd%3E'
         28        FETCH_DIM_R                                      ~13     !2, 'avg'
         29        ROPE_ADD                                     13  ~15     ~15, ~13
         30        ROPE_END                                     14  ~14     ~15, '%3C%2Ftd%3E%3C%2Ftr%3E'
         31        ECHO                                                     ~14
    8    32      > JMP                                                      ->8
         33    >   FE_FREE                                                  $6
   11    34        ECHO                                                     '%3C%2Ftable%3E'
   12    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.79 ms | 1399 KiB | 13 Q