3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = "DESCRIBE `pages`"; $fields = $db->query($sql)->fetchAll(); var_dump($fields); // dumps 26 rows foreach ($fields as $field); { var_dump($field); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/pp7DX
function name:  (null)
number of ops:  18
compiled vars:  !0 = $sql, !1 = $fields, !2 = $db, !3 = $field
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'DESCRIBE+%60pages%60'
    4     1        INIT_METHOD_CALL                                         !2, 'query'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $5      
          4        INIT_METHOD_CALL                                         $5, 'fetchAll'
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !1, $6
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    8    10      > FE_RESET_R                                       $9      !1, ->13
         11    > > FE_FETCH_R                                               $9, !3, ->13
         12    > > JMP                                                      ->11
         13    >   FE_FREE                                                  $9
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
   11    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.49 ms | 1395 KiB | 15 Q