3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dropDownList($field_name,$array_name,$default_value,$style="",$disabled="") { session_register('$field_name'); if ($disabled == 1) $disabled = "disabled"; if ($disabled != "disabled") $disabled = ""; echo "<Select name='$field_name' ".$style." ".$disabled." >"; echo "<option value=''></option>"; for ($loop=0;$loop<count($array_name);$loop++) { echo "<option value='".$array_name[$loop]['Value']."'"; if($array_name[$loop]['Value']== $default_value) { echo " selected"; $teamMember = $array_name[$loop]['Name']; global $teamName; $teamName = $array_name[$loop]['Name']; } echo ">".$array_name[$loop]['Name']."</option>"; } echo "</select>"; } function dropNBDownList($field_name,$array_name,$default_value,$style="") { session_register('$field_name'); echo "<Select name='$field_name' ".$style." >"; for ($loop=0;$loop<count($array_name);$loop++) { echo "<option value='".$array_name[$loop]['Value']."'"; if($array_name[$loop]['Value']== $default_value) { echo " selected"; } echo ">".$array_name[$loop]['Name']."</option>"; } echo "</select>"; } function showDownList($Field_Value,$MatchArray) { $ReturnValue=""; for ($loop=0;$loop<count($MatchArray);$loop++) { if($MatchArray[$loop]['Value']==$Field_Value) { $ReturnValue=$MatchArray[$loop]['Name']; } } return $ReturnValue; } function safeDivide($tmp1,$tmp2) { if($tmp2 > 0) { $result=$tmp1/$tmp2; } else { $result=0; } return $result; } function mkcheckbox($checkvalue) { if($checkvalue == '1') { echo "checked"; } } function reimport_get_vars() { reimport_any_vars("HTTP_GET_VARS"); } function reimport_post_vars() { reimport_any_vars("HTTP_POST_VARS"); } function reimport_cookie_vars() { reimport_any_vars("HTTP_COOKIE_VARS"); } function reimport_any_vars($arrayname) { global $$arrayname; if(!is_array($$arrayname)) return; reset($$arrayname); while(list($key, $val) = each($$arrayname)) { $GLOBALS[$key] = $val; } } function do_redirect_url($url,$message="One moment please...",$delay=0) { if(SID) { if(ereg("[?]",$url)) { $url .= "&".SID; } else { $url .= "?".SID; } } if($message=="default") { $message="One moment please..."; } if($delay=="default") { $delay=0; } echo("<HTML><HEAD><META HTTP-EQUIV=\"refresh\" CONTENT=\"$delay;url=$url\"></HEAD><BODY BGCOLOR=#ffffff>$message</BODY></HTML>"); } function fieldColor($TmpStatus) { switch ($TmpStatus) { case 1: $ColorBar='#FFCCCC'; break; case 2: case 3: case 10: $ColorBar='#FFFFCC'; break; case 5: case 6: case 7: $ColorBar='#fffffe'; break; case 9: $ColorBar='#99CC99'; break; case 8: case 11: case 4: $ColorBar='#99CCFF'; break; case 12: $ColorBar='#FCE398'; break; case 13: $ColorBar='#999999'; break; } return $ColorBar; } function business_days($pickDay) { $businessDays=0; $InDays=0; list($month, $day, $year) = split('[/.-]', $pickDay); $startDay=strtotime($month."/01/".$year); $pickDay=strtotime($pickDay); $endDay=strtotime($month."/".date("t",$startDay)."/".$year); $Temp_Array=array(); $daysDiff = (date("z",$endDay) - date("z",$startDay))+1; $Week=(date("W",$pickDay)-date("W",$startDay)); while($daysDiff) { switch(date("w",$endDay)) { case 0: case 6: break; default: $businessDays++; if($endDay <= $pickDay) { $InDays++; } break; } $endDay -= (60*60*24); $daysDiff--; } $Temp_Array['Projected']=$businessDays; $Temp_Array['Days']=$InDays; $Temp_Array['Week']=$Week; // ******************* // count for holidays // ******************* if($month == 7) { $Temp_Array['Projected']=$Temp_Array['Projected']-1; if($day >5) $Temp_Array['Days']=$Temp_Array['Days']-1; } if($month ==9) { $Temp_Array['Projected']=$Temp_Array['Projected']-1; if($day >6) $Temp_Array['Days']=$Temp_Array['Days']-1; } if($month ==12) { $Temp_Array['Projected']=$Temp_Array['Projected']-1; if($day >23) $Temp_Array['Days']=$Temp_Array['Days']-1; } return $Temp_Array; } function mydate_format($datestamp){ $tzoffset = 0; if ($datestamp == "0000-00-00" || $datestamp=="0000-00-00 00:00:00" || $datestamp=="") { $sDate = ""; } else { list($date,$time) = explode(" ",$datestamp); list($year,$month,$day) = explode("-",$date); list($hour,$minute,$second) = explode(":",$time); $hour = $hour + $tzoffset; $tstamp = mktime($hour,$minute,$second,$month,$day,$year); $sDate = date("m/d/Y H:i",$tstamp); } return $sDate; } function mydateNtime_format($datestamp){ $tzoffset = 0; if ($datestamp == "0000-00-00" || $datestamp=="0000-00-00 00:00:00" || $datestamp=="") { $sDate = ""; } else { list($date,$time) = explode(" ",$datestamp); list($year,$month,$day) = explode("-",$date); list($hour,$minute,$second) = explode(":",$time); $hour = $hour + $tzoffset; $tstamp = mktime($hour,$minute,$second,$month,$day,$year); $sDate = date("m/d/Y",$tstamp); } return $sDate; } function myTime_format($datestamp){ $tzoffset = 0; if ($datestamp == "0000-00-00" || $datestamp=="0000-00-00 00:00:00" || $datestamp=="") { $sDate = ""; } else { list($date,$time) = explode(" ",$datestamp); list($year,$month,$day) = explode("-",$date); list($hour,$minute,$second) = explode(":",$time); $hour = $hour + $tzoffset; $tstamp = mktime($hour,$minute,$second,$month,$day,$year); $sDate = date("H:i",$tstamp); } return $sDate; } function MakeDate($datestamp) { if($datestamp!="") { list($month, $day, $year, $hour, $min) = split('[ :/.-]', $datestamp); //$tstamp=$year."-".$month."-".$day; if($month=="")$month=0; if($min=="")$min=0; $tstamp = mktime($hour,$min,0,$month,$day,$year); $sDate=date("Y-m-d H:i",$tstamp); } else { $sDate="0000-00-00"; } return $sDate; } function getDialerStatus() { require("./connect.php"); $SelectQuery = "SELECT statusname,statusvalue FROM statusdetail order by statusvalue "; // run query if($results = MYSQL_query($SelectQuery,$connect)) { $Tmp_Array = array(); $counter=0; while ($row = MYSQL_fetch_array($results)) { $value = $row['statusvalue']; $Tmp_Array[$value]['Name'] = $row['statusname']; $counter++; } MYSQL_close($connect); } else { MYSQL_close($connect); die("Could not connect <br>$SelectQuery"); }// end if else return $Tmp_Array; } function getDialerStatusSRMC() { require("./connectProc.php"); $SelectQuery = "SELECT name,value FROM mccallstatus order by value "; // run query if($results = MYSQL_query($SelectQuery,$connect)) { $Tmp_Array = array(); $counter=0; while ($row = MYSQL_fetch_array($results)) { $value = $row['value']; $Tmp_Array[$value]['Name'] = $row['name']; $counter++; } MYSQL_close($connect); } else { MYSQL_close($connect); die("Could not connect <br>$SelectQuery"); }// end if else return $Tmp_Array; } function convertFloat($strValue) { $floatValue = ereg_replace("(^[0-9]*)(\\.|,)([0-9]*)(.*)", "\\1,\\3", $strValue); if (!is_numeric($floatValue)) $floatValue = ereg_replace("(^[0-9]*)(.*)", "\\1", $strValue); if (!is_numeric($floatValue)) $floatValue = 0; return $floatValue; } function strtflt($str) { $il = strlen($str); $flt = ""; $cstr = ""; for($i=0;$i<$il;$i++) { $cstr = substr($str, $i, 1); if(is_numeric($cstr) || $cstr == ".") $flt = $flt.$cstr; } return floatval($flt); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LR4if
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  358     0  E > > RETURN                                                   1

Function dropdownlist:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 25
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 42
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 25
Branch analysis from position: 51
Branch analysis from position: 25
Branch analysis from position: 42
Branch analysis from position: 14
Branch analysis from position: 11
filename:       /in/LR4if
function name:  dropDownList
number of ops:  53
compiled vars:  !0 = $field_name, !1 = $array_name, !2 = $default_value, !3 = $style, !4 = $disabled, !5 = $loop, !6 = $teamMember, !7 = $teamName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      ''
          4        RECV_INIT                                        !4      ''
    7     5        INIT_FCALL_BY_NAME                                       'session_register'
          6        SEND_VAL_EX                                              '%24field_name'
          7        DO_FCALL                                      0          
    8     8        IS_EQUAL                                                 !4, 1
          9      > JMPZ                                                     ~9, ->11
         10    >   ASSIGN                                                   !4, 'disabled'
    9    11    >   IS_NOT_EQUAL                                             !4, 'disabled'
         12      > JMPZ                                                     ~11, ->14
         13    >   ASSIGN                                                   !4, ''
   10    14    >   ROPE_INIT                                     3  ~14     '%3CSelect+name%3D%27'
         15        ROPE_ADD                                      1  ~14     ~14, !0
         16        ROPE_END                                      2  ~13     ~14, '%27+'
         17        CONCAT                                           ~16     ~13, !3
         18        CONCAT                                           ~17     ~16, '+'
         19        CONCAT                                           ~18     ~17, !4
         20        CONCAT                                           ~19     ~18, '+%3E'
         21        ECHO                                                     ~19
   11    22        ECHO                                                     '%3Coption++value%3D%27%27%3E%3C%2Foption%3E'
   12    23        ASSIGN                                                   !5, 0
         24      > JMP                                                      ->48
   14    25    >   FETCH_DIM_R                                      ~21     !1, !5
         26        FETCH_DIM_R                                      ~22     ~21, 'Value'
         27        CONCAT                                           ~23     '%3Coption+value%3D%27', ~22
         28        CONCAT                                           ~24     ~23, '%27'
         29        ECHO                                                     ~24
   15    30        FETCH_DIM_R                                      ~25     !1, !5
         31        FETCH_DIM_R                                      ~26     ~25, 'Value'
         32        IS_EQUAL                                                 !2, ~26
         33      > JMPZ                                                     ~27, ->42
   17    34    >   ECHO                                                     '+selected'
   18    35        FETCH_DIM_R                                      ~28     !1, !5
         36        FETCH_DIM_R                                      ~29     ~28, 'Name'
         37        ASSIGN                                                   !6, ~29
   19    38        BIND_GLOBAL                                              !7, 'teamName'
   20    39        FETCH_DIM_R                                      ~31     !1, !5
         40        FETCH_DIM_R                                      ~32     ~31, 'Name'
         41        ASSIGN                                                   !7, ~32
   22    42    >   FETCH_DIM_R                                      ~34     !1, !5
         43        FETCH_DIM_R                                      ~35     ~34, 'Name'
         44        CONCAT                                           ~36     '%3E', ~35
         45        CONCAT                                           ~37     ~36, '%3C%2Foption%3E'
         46        ECHO                                                     ~37
   12    47        PRE_INC                                                  !5
         48    >   COUNT                                            ~39     !1
         49        IS_SMALLER                                               !5, ~39
         50      > JMPNZ                                                    ~40, ->25
   25    51    >   ECHO                                                     '%3C%2Fselect%3E'
   26    52      > RETURN                                                   null

End of function dropdownlist

Function dropnbdownlist:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 15
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 15
Branch analysis from position: 34
Branch analysis from position: 15
Branch analysis from position: 25
filename:       /in/LR4if
function name:  dropNBDownList
number of ops:  36
compiled vars:  !0 = $field_name, !1 = $array_name, !2 = $default_value, !3 = $style, !4 = $loop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      ''
   29     4        INIT_FCALL_BY_NAME                                       'session_register'
          5        SEND_VAL_EX                                              '%24field_name'
          6        DO_FCALL                                      0          
   30     7        ROPE_INIT                                     3  ~7      '%3CSelect+name%3D%27'
          8        ROPE_ADD                                      1  ~7      ~7, !0
          9        ROPE_END                                      2  ~6      ~7, '%27+'
         10        CONCAT                                           ~9      ~6, !3
         11        CONCAT                                           ~10     ~9, '+%3E'
         12        ECHO                                                     ~10
   31    13        ASSIGN                                                   !4, 0
         14      > JMP                                                      ->31
   33    15    >   FETCH_DIM_R                                      ~12     !1, !4
         16        FETCH_DIM_R                                      ~13     ~12, 'Value'
         17        CONCAT                                           ~14     '%3Coption+value%3D%27', ~13
         18        CONCAT                                           ~15     ~14, '%27'
         19        ECHO                                                     ~15
   34    20        FETCH_DIM_R                                      ~16     !1, !4
         21        FETCH_DIM_R                                      ~17     ~16, 'Value'
         22        IS_EQUAL                                                 !2, ~17
         23      > JMPZ                                                     ~18, ->25
   36    24    >   ECHO                                                     '+selected'
   38    25    >   FETCH_DIM_R                                      ~19     !1, !4
         26        FETCH_DIM_R                                      ~20     ~19, 'Name'
         27        CONCAT                                           ~21     '%3E', ~20
         28        CONCAT                                           ~22     ~21, '%3C%2Foption%3E'
         29        ECHO                                                     ~22
   31    30        PRE_INC                                                  !4
         31    >   COUNT                                            ~24     !1
         32        IS_SMALLER                                               !4, ~24
         33      > JMPNZ                                                    ~25, ->15
   40    34    >   ECHO                                                     '%3C%2Fselect%3E'
   41    35      > RETURN                                                   null

End of function dropnbdownlist

Function showdownlist:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 5
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 5
Branch analysis from position: 16
Branch analysis from position: 5
Branch analysis from position: 12
filename:       /in/LR4if
function name:  showDownList
number of ops:  18
compiled vars:  !0 = $Field_Value, !1 = $MatchArray, !2 = $ReturnValue, !3 = $loop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   45     2        ASSIGN                                                   !2, ''
   46     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->13
   48     5    >   FETCH_DIM_R                                      ~6      !1, !3
          6        FETCH_DIM_R                                      ~7      ~6, 'Value'
          7        IS_EQUAL                                                 !0, ~7
          8      > JMPZ                                                     ~8, ->12
   50     9    >   FETCH_DIM_R                                      ~9      !1, !3
         10        FETCH_DIM_R                                      ~10     ~9, 'Name'
         11        ASSIGN                                                   !2, ~10
   46    12    >   PRE_INC                                                  !3
         13    >   COUNT                                            ~13     !1
         14        IS_SMALLER                                               !3, ~13
         15      > JMPNZ                                                    ~14, ->5
   53    16    > > RETURN                                                   !2
   54    17*     > RETURN                                                   null

End of function showdownlist

Function safedivide:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LR4if
function name:  safeDivide
number of ops:  10
compiled vars:  !0 = $tmp1, !1 = $tmp2, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   56     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   58     2        IS_SMALLER                                               0, !1
          3      > JMPZ                                                     ~3, ->7
   60     4    >   DIV                                              ~4      !0, !1
          5        ASSIGN                                                   !2, ~4
          6      > JMP                                                      ->8
   64     7    >   ASSIGN                                                   !2, 0
   66     8    > > RETURN                                                   !2
   67     9*     > RETURN                                                   null

End of function safedivide

Function mkcheckbox:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/LR4if
function name:  mkcheckbox
number of ops:  5
compiled vars:  !0 = $checkvalue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   69     0  E >   RECV                                             !0      
   71     1        IS_EQUAL                                                 !0, '1'
          2      > JMPZ                                                     ~1, ->4
   73     3    >   ECHO                                                     'checked'
   75     4    > > RETURN                                                   null

End of function mkcheckbox

Function reimport_get_vars:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LR4if
function name:  reimport_get_vars
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   78     0  E >   INIT_FCALL_BY_NAME                                       'reimport_any_vars'
          1        SEND_VAL_EX                                              'HTTP_GET_VARS'
          2        DO_FCALL                                      0          
   79     3      > RETURN                                                   null

End of function reimport_get_vars

Function reimport_post_vars:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LR4if
function name:  reimport_post_vars
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   82     0  E >   INIT_FCALL_BY_NAME                                       'reimport_any_vars'
          1        SEND_VAL_EX                                              'HTTP_POST_VARS'
          2        DO_FCALL                                      0          
   83     3      > RETURN                                                   null

End of function reimport_post_vars

Function reimport_cookie_vars:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LR4if
function name:  reimport_cookie_vars
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   86     0  E >   INIT_FCALL_BY_NAME                                       'reimport_any_vars'
          1        SEND_VAL_EX                                              'HTTP_COOKIE_VARS'
          2        DO_FCALL                                      0          
   87     3      > RETURN                                                   null

End of function reimport_cookie_vars

Function reimport_any_vars:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 14
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 14
Branch analysis from position: 27
Branch analysis from position: 14
filename:       /in/LR4if
function name:  reimport_any_vars
number of ops:  28
compiled vars:  !0 = $arrayname, !1 = $key, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   89     0  E >   RECV                                             !0      
   90     1        FETCH_W                      global lock         $3      !0
          2        FETCH_W                      local               $4      !0
          3        ASSIGN_REF                                               $4, $3
   91     4        FETCH_R                      local               ~5      !0
          5        TYPE_CHECK                                  128  ~6      ~5
          6        BOOL_NOT                                         ~7      ~6
          7      > JMPZ                                                     ~7, ->9
   92     8    > > RETURN                                                   null
   93     9    >   INIT_FCALL                                               'reset'
         10        FETCH_W                      local               $8      !0
         11        SEND_REF                                                 $8
         12        DO_ICALL                                                 
   94    13      > JMP                                                      ->17
   95    14    >   FETCH_W                      global              $10     'GLOBALS'
         15        ASSIGN_DIM                                               $10, !1
         16        OP_DATA                                                  !2
   94    17    >   INIT_FCALL_BY_NAME                                       'each'
         18        CHECK_FUNC_ARG                                           
         19        FETCH_FUNC_ARG               local               $12     !0
         20        SEND_FUNC_ARG                                            $12
         21        DO_FCALL                                      0  $13     
         22        FETCH_LIST_R                                     $14     $13, 0
         23        ASSIGN                                                   !1, $14
         24        FETCH_LIST_R                                     $16     $13, 1
         25        ASSIGN                                                   !2, $16
         26      > JMPNZ                                                    $13, ->14
   97    27    > > RETURN                                                   null

End of function reimport_any_vars

Function do_redirect_url:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 20
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
Branch analysis from position: 20
Branch analysis from position: 17
filename:       /in/LR4if
function name:  do_redirect_url
number of ops:  32
compiled vars:  !0 = $url, !1 = $message, !2 = $delay
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  100     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'One+moment+please...'
          2        RECV_INIT                                        !2      0
  101     3        FETCH_CONSTANT                                   ~3      'SID'
          4      > JMPZ                                                     ~3, ->17
  102     5    >   INIT_FCALL_BY_NAME                                       'ereg'
          6        SEND_VAL_EX                                              '%5B%3F%5D'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $4      
          9      > JMPZ                                                     $4, ->14
  103    10    >   FETCH_CONSTANT                                   ~5      'SID'
         11        CONCAT                                           ~6      '%26', ~5
         12        ASSIGN_OP                                     8          !0, ~6
         13      > JMP                                                      ->17
  105    14    >   FETCH_CONSTANT                                   ~8      'SID'
         15        CONCAT                                           ~9      '%3F', ~8
         16        ASSIGN_OP                                     8          !0, ~9
  108    17    >   IS_EQUAL                                                 !1, 'default'
         18      > JMPZ                                                     ~11, ->20
  109    19    >   ASSIGN                                                   !1, 'One+moment+please...'
  111    20    >   IS_EQUAL                                                 !2, 'default'
         21      > JMPZ                                                     ~13, ->23
  112    22    >   ASSIGN                                                   !2, 0
  114    23    >   ROPE_INIT                                     7  ~16     '%3CHTML%3E%3CHEAD%3E%3CMETA+HTTP-EQUIV%3D%22refresh%22+CONTENT%3D%22'
         24        ROPE_ADD                                      1  ~16     ~16, !2
         25        ROPE_ADD                                      2  ~16     ~16, '%3Burl%3D'
         26        ROPE_ADD                                      3  ~16     ~16, !0
         27        ROPE_ADD                                      4  ~16     ~16, '%22%3E%3C%2FHEAD%3E%3CBODY+BGCOLOR%3D%23ffffff%3E'
         28        ROPE_ADD                                      5  ~16     ~16, !1
         29        ROPE_END                                      6  ~15     ~16, '%3C%2FBODY%3E%3C%2FHTML%3E'
         30        ECHO                                                     ~15
  115    31      > RETURN                                                   null

End of function do_redirect_url

Function fieldcolor:
Finding entry points
Branch analysis from position: 0
15 jumps found. (Code = 187) Position 1 = 29, Position 2 = 31, Position 3 = 31, Position 4 = 31, Position 5 = 33, Position 6 = 33, Position 7 = 33, Position 8 = 35, Position 9 = 37, Position 10 = 37, Position 11 = 37, Position 12 = 39, Position 13 = 41, Position 14 = 43, Position 15 = 2
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 31
Branch analysis from position: 31
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 33
Branch analysis from position: 33
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 37
Branch analysis from position: 37
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 43
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 29
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 31
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 31
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 31
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 33
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 33
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 33
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 35
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 37
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 37
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 37
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 39
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 41
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 41
Branch analysis from position: 39
Branch analysis from position: 37
Branch analysis from position: 37
Branch analysis from position: 37
Branch analysis from position: 35
Branch analysis from position: 33
Branch analysis from position: 33
Branch analysis from position: 33
Branch analysis from position: 31
Branch analysis from position: 31
Branch analysis from position: 31
Branch analysis from position: 29
filename:       /in/LR4if
function name:  fieldColor
number of ops:  45
compiled vars:  !0 = $TmpStatus, !1 = $ColorBar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  117     0  E >   RECV                                             !0      
  119     1      > SWITCH_LONG                                              !0, [ 1:->29, 2:->31, 3:->31, 10:->31, 5:->33, 6:->33, 7:->33, 9:->35, 8:->37, 11:->37, 4:->37, 12:->39, 13:->41, ], ->43
  121     2    >   IS_EQUAL                                                 !0, 1
          3      > JMPNZ                                                    ~2, ->29
  124     4    >   IS_EQUAL                                                 !0, 2
          5      > JMPNZ                                                    ~2, ->31
  125     6    >   IS_EQUAL                                                 !0, 3
          7      > JMPNZ                                                    ~2, ->31
  126     8    >   IS_EQUAL                                                 !0, 10
          9      > JMPNZ                                                    ~2, ->31
  129    10    >   IS_EQUAL                                                 !0, 5
         11      > JMPNZ                                                    ~2, ->33
  130    12    >   IS_EQUAL                                                 !0, 6
         13      > JMPNZ                                                    ~2, ->33
  131    14    >   IS_EQUAL                                                 !0, 7
         15      > JMPNZ                                                    ~2, ->33
  134    16    >   IS_EQUAL                                                 !0, 9
         17      > JMPNZ                                                    ~2, ->35
  137    18    >   IS_EQUAL                                                 !0, 8
         19      > JMPNZ                                                    ~2, ->37
  138    20    >   IS_EQUAL                                                 !0, 11
         21      > JMPNZ                                                    ~2, ->37
  139    22    >   IS_EQUAL                                                 !0, 4
         23      > JMPNZ                                                    ~2, ->37
  142    24    >   IS_EQUAL                                                 !0, 12
         25      > JMPNZ                                                    ~2, ->39
  145    26    >   IS_EQUAL                                                 !0, 13
         27      > JMPNZ                                                    ~2, ->41
         28    > > JMP                                                      ->43
  122    29    >   ASSIGN                                                   !1, '%23FFCCCC'
  123    30      > JMP                                                      ->43
  127    31    >   ASSIGN                                                   !1, '%23FFFFCC'
  128    32      > JMP                                                      ->43
  132    33    >   ASSIGN                                                   !1, '%23fffffe'
  133    34      > JMP                                                      ->43
  135    35    >   ASSIGN                                                   !1, '%2399CC99'
  136    36      > JMP                                                      ->43
  140    37    >   ASSIGN                                                   !1, '%2399CCFF'
  141    38      > JMP                                                      ->43
  143    39    >   ASSIGN                                                   !1, '%23FCE398'
  144    40      > JMP                                                      ->43
  146    41    >   ASSIGN                                                   !1, '%23999999'
  147    42      > JMP                                                      ->43
  149    43    > > RETURN                                                   !1
  150    44*     > RETURN                                                   null

End of function fieldcolor

Function business_days:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 59
Branch analysis from position: 78
2 jumps found. (Code = 43) Position 1 = 86, Position 2 = 96
Branch analysis from position: 86
2 jumps found. (Code = 43) Position 1 = 92, Position 2 = 96
Branch analysis from position: 92
2 jumps found. (Code = 43) Position 1 = 98, Position 2 = 108
Branch analysis from position: 98
2 jumps found. (Code = 43) Position 1 = 104, Position 2 = 108
Branch analysis from position: 104
2 jumps found. (Code =

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
272.81 ms | 1428 KiB | 16 Q