3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'include.php'; mysql_connect($mysql_host, $mysql_username, $mysql_password) or die(__LINE__ . ' Invalid connect: ' . mysql_error()); mysql_select_db($mysql_database) or die( "Unable to select database. Run setup first."); $sum = 0.00; $result = mysql_query("select value from invoice_payments where value >= 0.01"); if(!$result) die(__LINE__ . mysql_error()); while($row = mysql_fetch_array($result)) { $sum += 0.01; } $sum *= .90; echo (string)$sum; //echo $sum;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
Branch analysis from position: 30
filename:       /in/g6pv9
function name:  (null)
number of ops:  40
compiled vars:  !0 = $mysql_host, !1 = $mysql_username, !2 = $mysql_password, !3 = $mysql_database, !4 = $sum, !5 = $result, !6 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'include.php', INCLUDE
    4     1        INIT_FCALL_BY_NAME                                       'mysql_connect'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAR_EX                                              !1
          4        SEND_VAR_EX                                              !2
          5        DO_FCALL                                      0  $8      
          6      > JMPNZ_EX                                         ~9      $8, ->12
          7    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          8        DO_FCALL                                      0  $10     
          9        CONCAT                                           ~11     '4+Invalid+connect%3A+', $10
         10      > EXIT                                                     ~11
         11*       BOOL                                             ~9      <true>
    5    12    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         13        SEND_VAR_EX                                              !3
         14        DO_FCALL                                      0  $12     
         15      > JMPNZ_EX                                         ~13     $12, ->18
         16    > > EXIT                                                     'Unable+to+select+database.+Run+setup+first.'
         17*       BOOL                                             ~13     <true>
    7    18    >   ASSIGN                                                   !4, 0
    8    19        INIT_FCALL_BY_NAME                                       'mysql_query'
         20        SEND_VAL_EX                                              'select+value+from+invoice_payments+where+value+%3E%3D+0.01'
         21        DO_FCALL                                      0  $15     
         22        ASSIGN                                                   !5, $15
    9    23        BOOL_NOT                                         ~17     !5
         24      > JMPZ                                                     ~17, ->29
   10    25    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         26        DO_FCALL                                      0  $18     
         27        CONCAT                                           ~19     '10', $18
         28      > EXIT                                                     ~19
   12    29    > > JMP                                                      ->31
   14    30    >   ASSIGN_OP                                     1          !4, 0.01
   12    31    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         32        SEND_VAR_EX                                              !5
         33        DO_FCALL                                      0  $21     
         34        ASSIGN                                           ~22     !6, $21
         35      > JMPNZ                                                    ~22, ->30
   17    36    >   ASSIGN_OP                                     3          !4, 0.9
   18    37        CAST                                          6  ~24     !4
         38        ECHO                                                     ~24
   19    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.89 ms | 1403 KiB | 13 Q