3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = mysql_connect('localhost', 'programmer', 'Welcome01$$$'); if (!$link) { die('Could not connect: ' . mysql_error()); } $selected = mysql_select_db("computergeeksrus_ticket_system",$link) ; function clean($str){ return mysql_real_escape_string($str); } $wo_id=$_GET['id']; if($wo_id && ctype_digit($wo_id)){ $wo_id=clean($wo_id); $q1 = mysql_query("SELECT * FROM MYIT_TABLE_WORK_ORDER WHERE WORK_ORDER_ID='$wo_id'"); $data=mysql_fetch_array($q1); $dateo=$data['WORK_ORDER_OPEN_DATE']; $t1=$data['WORK_ORDER_TIME_SPENT']; $s1=$data['WORK_ORDER_STATUS']; $cid=$data['CUSTOMER_ID']; $lastupdated=$data['LAST_ACTIVE']; $p=$data['PRIORITY_ID']; $s2=$data['WORK_ORDER_CURRENT_STATUS']; /* myit_table_customer Full texts CUSTOMER_ID Ascending CUSTOMER_DISPLAY_NAME CUSTOMER_COMPANY CUSTOMER_ADDRESS CUSTOMER_CITY CUSTOMER_STATE CUSTOMER_ZIP CUSTOMER_PHONE CUSTOMER_WORK_PHONE CUSTOMER_MOBILE_PHONE CUSTOMER_EMAIL CUSTOMER_WWW CREDIT_TERMS CUSTOMER_NOTES CUSTOMER_TYPE CUSTOMER_FIRST_NAME CUSTOMER_MIDDLE_NAME CUSTOMER_LAST_NAME CUSTOMER_TITLE CREATE_DATE LAST_ACTIVE DISCOUNT CUSTOMER_REFERRED_BY CUSTOMER_REFERRALS */ ?> <table> <tr> <td>Name</td> <td>Date Opened</td> <td>Time Spent</td> <td>Last Updated</td> <td>Status</td> <td>Priority</td> </tr> <tr> <td></td> <td><?=$dateo?></td> <td>WORK_ORDER_TIME_SPENT</td> <td></td> <td></td> <td></td> </tr> </table> <?php } else { die("invalid parameters"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 59
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 59
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
filename:       /in/UaGjc
function name:  (null)
number of ops:  61
compiled vars:  !0 = $link, !1 = $selected, !2 = $wo_id, !3 = $q1, !4 = $data, !5 = $dateo, !6 = $t1, !7 = $s1, !8 = $cid, !9 = $lastupdated, !10 = $p, !11 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          1        SEND_VAL_EX                                              'localhost'
          2        SEND_VAL_EX                                              'programmer'
          3        SEND_VAL_EX                                              'Welcome01%24%24%24'
          4        DO_FCALL                                      0  $12     
          5        ASSIGN                                                   !0, $12
    3     6        BOOL_NOT                                         ~14     !0
          7      > JMPZ                                                     ~14, ->12
    4     8    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          9        DO_FCALL                                      0  $15     
         10        CONCAT                                           ~16     'Could+not+connect%3A+', $15
         11      > EXIT                                                     ~16
    6    12    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         13        SEND_VAL_EX                                              'computergeeksrus_ticket_system'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $17     
         16        ASSIGN                                                   !1, $17
   10    17        FETCH_R                      global              ~19     '_GET'
         18        FETCH_DIM_R                                      ~20     ~19, 'id'
         19        ASSIGN                                                   !2, ~20
   11    20      > JMPZ_EX                                          ~22     !2, ->25
         21    >   INIT_FCALL                                               'ctype_digit'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                         $23     
         24        BOOL                                             ~22     $23
         25    > > JMPZ                                                     ~22, ->59
   12    26    >   INIT_FCALL                                               'clean'
         27        SEND_VAR                                                 !2
         28        DO_FCALL                                      0  $24     
         29        ASSIGN                                                   !2, $24
   14    30        INIT_FCALL_BY_NAME                                       'mysql_query'
         31        ROPE_INIT                                     3  ~27     'SELECT+%2A+FROM+MYIT_TABLE_WORK_ORDER+WHERE+WORK_ORDER_ID%3D%27'
         32        ROPE_ADD                                      1  ~27     ~27, !2
         33        ROPE_END                                      2  ~26     ~27, '%27'
         34        SEND_VAL_EX                                              ~26
         35        DO_FCALL                                      0  $29     
         36        ASSIGN                                                   !3, $29
   16    37        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         38        SEND_VAR_EX                                              !3
         39        DO_FCALL                                      0  $31     
         40        ASSIGN                                                   !4, $31
   17    41        FETCH_DIM_R                                      ~33     !4, 'WORK_ORDER_OPEN_DATE'
         42        ASSIGN                                                   !5, ~33
   18    43        FETCH_DIM_R                                      ~35     !4, 'WORK_ORDER_TIME_SPENT'
         44        ASSIGN                                                   !6, ~35
   19    45        FETCH_DIM_R                                      ~37     !4, 'WORK_ORDER_STATUS'
         46        ASSIGN                                                   !7, ~37
   20    47        FETCH_DIM_R                                      ~39     !4, 'CUSTOMER_ID'
         48        ASSIGN                                                   !8, ~39
   21    49        FETCH_DIM_R                                      ~41     !4, 'LAST_ACTIVE'
         50        ASSIGN                                                   !9, ~41
   22    51        FETCH_DIM_R                                      ~43     !4, 'PRIORITY_ID'
         52        ASSIGN                                                   !10, ~43
   23    53        FETCH_DIM_R                                      ~45     !4, 'WORK_ORDER_CURRENT_STATUS'
         54        ASSIGN                                                   !11, ~45
   29    55        ECHO                                                     '%3Ctable%3E%0A++++%3Ctr%3E%0A++++++++%3Ctd%3EName%3C%2Ftd%3E%0A++++++++%3Ctd%3EDate+Opened%3C%2Ftd%3E%0A++++++++%3Ctd%3ETime+Spent%3C%2Ftd%3E%0A++++++++%3Ctd%3ELast+Updated%3C%2Ftd%3E%0A++++++++%3Ctd%3EStatus%3C%2Ftd%3E%0A++++++++%3Ctd%3EPriority%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A++++%3Ctr%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   40    56        ECHO                                                     !5
         57        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3EWORK_ORDER_TIME_SPENT%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A'
         58      > JMP                                                      ->60
   48    59    > > EXIT                                                     'invalid+parameters'
   50    60    > > RETURN                                                   1

Function clean:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UaGjc
function name:  clean
number of ops:  6
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
    9     5*     > RETURN                                                   null

End of function clean

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161 ms | 1403 KiB | 16 Q