3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Won Code Library * PRNDL Development Studios, LLC * 11/17/2012 * v1.0.0 */ /* * Get shortname for a day of the week using the day number */ function getDayShortName($dayNum){ $dayNames = array("sun","mon","tue","wed","thur","fri","sat"); return $dayNames[$dayNum]; } /* * Get longname for a day of the week using the day number */ function getDayLongName($dayNum){ $dayNames = array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); return $dayNames[$dayNum]; } /* * Get Full Filter Name from Abbreviation */ function getFilterName ($filterAbbreviation) { $filters = array( "R" => "Restuarant", "B" => "Bar", "S" => "Store", "L" => "Lodging", "Q" => "Recreation", "G" => "Gas Station", "E" => "Entertainment", "C" => "Club" ); return $filters[$filterAbbreviation]; } /* * Parse Filterstring and return Where Clause for SQL Queries */ function parseFilterString($filterString) { /*$returnVal = ""; $filterLetters = str_split($filterString, 1);    for($x = 0; $x < strlen($filterString); $x++) {        $returnVal .= "(type <=> '" . getFilterName($filterLetters[$x]) . "') OR ";    }     if (strlen($returnVal) > 0) $returnVal =  substr($returnVal,0,-4); //remove final " OR " from filterstring   else $returnVal = "type = 'VOID'"; //if everything is filtered, make sure to set type to something not available return $returnVal;*/ } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5cYJK
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   51     0  E > > RETURN                                                   1

Function getdayshortname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5cYJK
function name:  getDayShortName
number of ops:  5
compiled vars:  !0 = $dayNum, !1 = $dayNames
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        ASSIGN                                                   !1, <array>
   13     2        FETCH_DIM_R                                      ~3      !1, !0
          3      > RETURN                                                   ~3
   14     4*     > RETURN                                                   null

End of function getdayshortname

Function getdaylongname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5cYJK
function name:  getDayLongName
number of ops:  5
compiled vars:  !0 = $dayNum, !1 = $dayNames
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   19     1        ASSIGN                                                   !1, <array>
   20     2        FETCH_DIM_R                                      ~3      !1, !0
          3      > RETURN                                                   ~3
   21     4*     > RETURN                                                   null

End of function getdaylongname

Function getfiltername:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5cYJK
function name:  getFilterName
number of ops:  5
compiled vars:  !0 = $filterAbbreviation, !1 = $filters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   26     1        ASSIGN                                                   !1, <array>
   36     2        FETCH_DIM_R                                      ~3      !1, !0
          3      > RETURN                                                   ~3
   37     4*     > RETURN                                                   null

End of function getfiltername

Function parsefilterstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5cYJK
function name:  parseFilterString
number of ops:  2
compiled vars:  !0 = $filterString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   41     0  E >   RECV                                             !0      
   50     1      > RETURN                                                   null

End of function parsefilterstring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.49 ms | 1395 KiB | 13 Q