3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Define connection $db = new PDO('mysql:host=m0th.co.uk;dbname=m0thc861_space;charset=utf8', 'm0thc861_read', 'reader'); // Query foreach($db->query('SELECT * FROM invTypes WHERE groupID = 6') as $row) { echo $row['typeName']; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/dg73A
function name:  (null)
number of ops:  16
compiled vars:  !0 = $db, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'PDO'
          1        SEND_VAL_EX                                              'mysql%3Ahost%3Dm0th.co.uk%3Bdbname%3Dm0thc861_space%3Bcharset%3Dutf8'
          2        SEND_VAL_EX                                              'm0thc861_read'
          3        SEND_VAL_EX                                              'reader'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    6     6        INIT_METHOD_CALL                                         !0, 'query'
          7        SEND_VAL_EX                                              'SELECT+%2A+FROM+invTypes+WHERE+groupID+%3D+6'
          8        DO_FCALL                                      0  $5      
          9      > FE_RESET_R                                       $6      $5, ->14
         10    > > FE_FETCH_R                                               $6, !1, ->14
    7    11    >   FETCH_DIM_R                                      ~7      !1, 'typeName'
         12        ECHO                                                     ~7
    6    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $6
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.18 ms | 1394 KiB | 13 Q