3v4l.org

run code in 300+ PHP versions simultaneously
<?php //This is a PHP comment line /* This is a PHP comment block */ $table="staffstatus"; $ip="db4free.net"; $user="staartvin"; $password="myDwwRJN132!sql"; $database="staartvinmysql"; // Create connection $con= mysqli_connect($ip,$user,$password,$database) or die("Error " . mysqli_error($con)); // Check connection if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM " . $table . " WHERE playerName='Staartvin'"); while($row = mysqli_fetch_array($result)) { if ($row['online']='true') { //echo '<img src="http://www.eb-5center.com/files/icon_check.png" border=0>'; echo 'test'; } } mysqli_close($con); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 39
Branch analysis from position: 38
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: 39
Branch analysis from position: 27
filename:       /in/MSMUO
function name:  (null)
number of ops:  48
compiled vars:  !0 = $table, !1 = $ip, !2 = $user, !3 = $password, !4 = $database, !5 = $con, !6 = $result, !7 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'staffstatus'
   11     1        ASSIGN                                                   !1, 'db4free.net'
   12     2        ASSIGN                                                   !2, 'staartvin'
   13     3        ASSIGN                                                   !3, 'myDwwRJN132%21sql'
   14     4        ASSIGN                                                   !4, 'staartvinmysql'
   17     5        INIT_FCALL_BY_NAME                                       'mysqli_connect'
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !2
          8        SEND_VAR_EX                                              !3
          9        SEND_VAR_EX                                              !4
         10        DO_FCALL                                      0  $13     
         11        ASSIGN                                           ~14     !5, $13
         12      > JMPNZ_EX                                         ~14     ~14, ->19
         13    >   INIT_FCALL_BY_NAME                                       'mysqli_error'
         14        SEND_VAR_EX                                              !5
         15        DO_FCALL                                      0  $15     
         16        CONCAT                                           ~16     'Error+', $15
         17      > EXIT                                                     ~16
         18*       BOOL                                             ~14     <true>
   20    19    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
         20        SEND_VAR_EX                                              !5
         21        DO_FCALL                                      0  $17     
         22      > JMPZ                                                     $17, ->27
   22    23    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         24        DO_FCALL                                      0  $18     
         25        CONCAT                                           ~19     'Failed+to+connect+to+MySQL%3A+', $18
         26        ECHO                                                     ~19
   25    27    >   INIT_FCALL_BY_NAME                                       'mysqli_query'
         28        SEND_VAR_EX                                              !5
         29        CONCAT                                           ~20     'SELECT+%2A+FROM+', !0
         30        CONCAT                                           ~21     ~20, '+WHERE+playerName%3D%27Staartvin%27'
         31        SEND_VAL_EX                                              ~21
         32        DO_FCALL                                      0  $22     
         33        ASSIGN                                                   !6, $22
   27    34      > JMP                                                      ->39
   29    35    >   ASSIGN_DIM                                       ~24     !7, 'online'
         36        OP_DATA                                                  'true'
         37      > JMPZ                                                     ~24, ->39
   32    38    >   ECHO                                                     'test'
   27    39    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_array'
         40        SEND_VAR_EX                                              !6
         41        DO_FCALL                                      0  $25     
         42        ASSIGN                                           ~26     !7, $25
         43      > JMPNZ                                                    ~26, ->35
   36    44    >   INIT_FCALL_BY_NAME                                       'mysqli_close'
         45        SEND_VAR_EX                                              !5
         46        DO_FCALL                                      0          
   37    47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.66 ms | 1399 KiB | 13 Q