3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = mysql_connect('sqld.duapp.com:4050', 'ISDddvTQAsC00NmHsOrCcqIL', 'GMEWfs0973mqDGlgfsz7zVSnEQxqAePM',true); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('mydb'); /* Update records */ mysql_query("UPDATE mytable SET used=1 WHERE id < 10"); printf ("Updated records: %d ", mysql_affected_rows()); mysql_query("COMMIT"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TM7Ai
function name:  (null)
number of ops:  29
compiled vars:  !0 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          1        SEND_VAL_EX                                              'sqld.duapp.com%3A4050'
          2        SEND_VAL_EX                                              'ISDddvTQAsC00NmHsOrCcqIL'
          3        SEND_VAL_EX                                              'GMEWfs0973mqDGlgfsz7zVSnEQxqAePM'
          4        SEND_VAL_EX                                              <true>
          5        DO_FCALL                                      0  $1      
          6        ASSIGN                                                   !0, $1
    3     7        BOOL_NOT                                         ~3      !0
          8      > JMPZ                                                     ~3, ->13
    4     9    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         10        DO_FCALL                                      0  $4      
         11        CONCAT                                           ~5      'Could+not+connect%3A+', $4
         12      > EXIT                                                     ~5
    6    13    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         14        SEND_VAL_EX                                              'mydb'
         15        DO_FCALL                                      0          
    9    16        INIT_FCALL_BY_NAME                                       'mysql_query'
         17        SEND_VAL_EX                                              'UPDATE+mytable+SET+used%3D1+WHERE+id+%3C+10'
         18        DO_FCALL                                      0          
   10    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 'Updated+records%3A+%25d+'
         21        INIT_FCALL_BY_NAME                                       'mysql_affected_rows'
         22        DO_FCALL                                      0  $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
   11    25        INIT_FCALL_BY_NAME                                       'mysql_query'
         26        SEND_VAL_EX                                              'COMMIT'
         27        DO_FCALL                                      0          
   12    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.52 ms | 1396 KiB | 15 Q