3v4l.org

run code in 300+ PHP versions simultaneously
<?php $connect = mysqli_connect("localhost", "jnuroeig_john", "john23","jnuroeig_world"); if (mysqli_connect_errno()) { echo ("Connection Failed" .mysqli_connect_error()); } else { echo "///Connection Success///"; } $dataquery=mysqli_query($connect,"SELECT * FROM '[Countries with high life expectancy]' WHERE LifeExpectancy>78 " ); echo "<table border='1'> <tr> <th>Name</th> <th>LifeExpectency</th> </tr>"; while($row=mysqli_fetch_array($dataquery)) { echo "<tr>"; echo "<td>" . $row['Name'] . "</td>"; echo "<td>" . $row['LifeExpectancy'] . "</td>"; echo "</tr>"; } echo "</table>"; mysqli_close($connect); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 23
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 23
Branch analysis from position: 38
Branch analysis from position: 23
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
filename:       /in/bTD5J
function name:  (null)
number of ops:  43
compiled vars:  !0 = $connect, !1 = $dataquery, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysqli_connect'
          1        SEND_VAL_EX                                              'localhost'
          2        SEND_VAL_EX                                              'jnuroeig_john'
          3        SEND_VAL_EX                                              'john23'
          4        SEND_VAL_EX                                              'jnuroeig_world'
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !0, $3
    3     7        INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
          8        DO_FCALL                                      0  $5      
          9      > JMPZ                                                     $5, ->15
    4    10    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         11        DO_FCALL                                      0  $6      
         12        CONCAT                                           ~7      'Connection+Failed', $6
         13        ECHO                                                     ~7
         14      > JMP                                                      ->16
    7    15    >   ECHO                                                     '%2F%2F%2FConnection+Success%2F%2F%2F'
   10    16    >   INIT_FCALL_BY_NAME                                       'mysqli_query'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAL_EX                                              'SELECT+%2A+FROM+%27%5BCountries+with+high+life+expectancy%5D%27+WHERE+LifeExpectancy%3E78+'
         19        DO_FCALL                                      0  $8      
         20        ASSIGN                                                   !1, $8
   12    21        ECHO                                                     '%3Ctable+border%3D%271%27%3E%0A%3Ctr%3E%0A%3Cth%3EName%3C%2Fth%3E%0A%3Cth%3ELifeExpectency%3C%2Fth%3E%0A%3C%2Ftr%3E'
   18    22      > JMP                                                      ->33
   20    23    >   ECHO                                                     '%3Ctr%3E'
   21    24        FETCH_DIM_R                                      ~10     !2, 'Name'
         25        CONCAT                                           ~11     '%3Ctd%3E', ~10
         26        CONCAT                                           ~12     ~11, '%3C%2Ftd%3E'
         27        ECHO                                                     ~12
   22    28        FETCH_DIM_R                                      ~13     !2, 'LifeExpectancy'
         29        CONCAT                                           ~14     '%3Ctd%3E', ~13
         30        CONCAT                                           ~15     ~14, '%3C%2Ftd%3E'
         31        ECHO                                                     ~15
   23    32        ECHO                                                     '%3C%2Ftr%3E'
   18    33    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_array'
         34        SEND_VAR_EX                                              !1
         35        DO_FCALL                                      0  $16     
         36        ASSIGN                                           ~17     !2, $16
         37      > JMPNZ                                                    ~17, ->23
   25    38    >   ECHO                                                     '%3C%2Ftable%3E'
   26    39        INIT_FCALL_BY_NAME                                       'mysqli_close'
         40        SEND_VAR_EX                                              !0
         41        DO_FCALL                                      0          
   27    42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.48 ms | 1399 KiB | 13 Q