3v4l.org

run code in 300+ PHP versions simultaneously
<? //the example of inserting data with variable from HTML form //input.php mmysql_connect("userdb1","1039862_QmG","yJksQAtjWml2CF");//database connection mysql_select_db("1039862_QmG"); $name_animal=$_POST['name_animal']; $DOB=$_POST['DOB']; $species=$_POST['species']; $type=$_POST['type']; $fk_Id_client=$_POST['fk_Id_client']; $fk_id_deskstaff=$_POST['fk_id_deskstaff']; //inserting data order $order = "INSERT INTO Animal (name_animal,DOB,species, type,fk_Id_client,fk_id_deskstaff) VALUES ('$name_animal','$DOB','$species','$type','$fk_Id_client','$fk_id_deskstaff')"; //declare in the order variable $result = mysql_query($order); //order executes if($result){ echo("<br>Input data is succeed"); } else{ echo("<br>Input data is fail"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 47
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P6oql
function name:  (null)
number of ops:  49
compiled vars:  !0 = $name_animal, !1 = $DOB, !2 = $species, !3 = $type, !4 = $fk_Id_client, !5 = $fk_id_deskstaff, !6 = $order, !7 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'mmysql_connect'
          1        SEND_VAL_EX                                              'userdb1'
          2        SEND_VAL_EX                                              '1039862_QmG'
          3        SEND_VAL_EX                                              'yJksQAtjWml2CF'
          4        DO_FCALL                                      0          
    5     5        INIT_FCALL_BY_NAME                                       'mysql_select_db'
          6        SEND_VAL_EX                                              '1039862_QmG'
          7        DO_FCALL                                      0          
    7     8        FETCH_R                      global              ~10     '_POST'
          9        FETCH_DIM_R                                      ~11     ~10, 'name_animal'
         10        ASSIGN                                                   !0, ~11
    8    11        FETCH_R                      global              ~13     '_POST'
         12        FETCH_DIM_R                                      ~14     ~13, 'DOB'
         13        ASSIGN                                                   !1, ~14
    9    14        FETCH_R                      global              ~16     '_POST'
         15        FETCH_DIM_R                                      ~17     ~16, 'species'
         16        ASSIGN                                                   !2, ~17
   10    17        FETCH_R                      global              ~19     '_POST'
         18        FETCH_DIM_R                                      ~20     ~19, 'type'
         19        ASSIGN                                                   !3, ~20
   11    20        FETCH_R                      global              ~22     '_POST'
         21        FETCH_DIM_R                                      ~23     ~22, 'fk_Id_client'
         22        ASSIGN                                                   !4, ~23
   12    23        FETCH_R                      global              ~25     '_POST'
         24        FETCH_DIM_R                                      ~26     ~25, 'fk_id_deskstaff'
         25        ASSIGN                                                   !5, ~26
   20    26        ROPE_INIT                                    13  ~29     'INSERT+INTO+Animal+%28name_animal%2CDOB%2Cspecies%2C+type%2Cfk_Id_client%2Cfk_id_deskstaff%29%0A%09%09%09VALUES+%28%27'
   21    27        ROPE_ADD                                      1  ~29     ~29, !0
         28        ROPE_ADD                                      2  ~29     ~29, '%27%2C%27'
         29        ROPE_ADD                                      3  ~29     ~29, !1
         30        ROPE_ADD                                      4  ~29     ~29, '%27%2C%27'
         31        ROPE_ADD                                      5  ~29     ~29, !2
         32        ROPE_ADD                                      6  ~29     ~29, '%27%2C%27'
         33        ROPE_ADD                                      7  ~29     ~29, !3
         34        ROPE_ADD                                      8  ~29     ~29, '%27%2C%27'
         35        ROPE_ADD                                      9  ~29     ~29, !4
         36        ROPE_ADD                                     10  ~29     ~29, '%27%2C%27'
         37        ROPE_ADD                                     11  ~29     ~29, !5
         38        ROPE_END                                     12  ~28     ~29, '%27%29'
   20    39        ASSIGN                                                   !6, ~28
   24    40        INIT_FCALL_BY_NAME                                       'mysql_query'
         41        SEND_VAR_EX                                              !6
         42        DO_FCALL                                      0  $37     
         43        ASSIGN                                                   !7, $37
   25    44      > JMPZ                                                     !7, ->47
   26    45    >   ECHO                                                     '%3Cbr%3EInput+data+is+succeed'
         46      > JMP                                                      ->48
   28    47    >   ECHO                                                     '%3Cbr%3EInput+data+is+fail'
   30    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.97 ms | 1399 KiB | 13 Q