3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_name = "u393257285_fs"; $password = "drapal"; $database = "u393257285_fs"; $server = "mysql.hostinger.in"; $db_handle = mysql_connect($server, $user_name, $password); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $SQL = "INSERT INTO Test (Id, Name, Age) VALUES (1, 'gates', 60)"; $result = mysql_query($SQL); mysql_close($db_handle); print "Records added to the database"; } else { print "Database NOT Found "; mysql_close($db_handle); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 26
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jk0IX
function name:  (null)
number of ops:  31
compiled vars:  !0 = $user_name, !1 = $password, !2 = $database, !3 = $server, !4 = $db_handle, !5 = $db_found, !6 = $SQL, !7 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'u393257285_fs'
    4     1        ASSIGN                                                   !1, 'drapal'
    5     2        ASSIGN                                                   !2, 'u393257285_fs'
    6     3        ASSIGN                                                   !3, 'mysql.hostinger.in'
    8     4        INIT_FCALL_BY_NAME                                       'mysql_connect'
          5        SEND_VAR_EX                                              !3
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $12     
          9        ASSIGN                                                   !4, $12
    9    10        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         11        SEND_VAR_EX                                              !2
         12        SEND_VAR_EX                                              !4
         13        DO_FCALL                                      0  $14     
         14        ASSIGN                                                   !5, $14
   11    15      > JMPZ                                                     !5, ->26
   13    16    >   ASSIGN                                                   !6, 'INSERT+INTO+Test+%28Id%2C+Name%2C+Age%29+VALUES+%281%2C+%27gates%27%2C+60%29'
   15    17        INIT_FCALL_BY_NAME                                       'mysql_query'
         18        SEND_VAR_EX                                              !6
         19        DO_FCALL                                      0  $17     
         20        ASSIGN                                                   !7, $17
   17    21        INIT_FCALL_BY_NAME                                       'mysql_close'
         22        SEND_VAR_EX                                              !4
         23        DO_FCALL                                      0          
   19    24        ECHO                                                     'Records+added+to+the+database'
         25      > JMP                                                      ->30
   24    26    >   ECHO                                                     'Database+NOT+Found+'
   25    27        INIT_FCALL_BY_NAME                                       'mysql_close'
         28        SEND_VAR_EX                                              !4
         29        DO_FCALL                                      0          
   29    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.85 ms | 1395 KiB | 13 Q