3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Get Full Filter Name from Abbreviation */ function getFilterName($filterAbbreviation) { return "Restaurant"; /*$filters = array( "R" => "Restuarant", "B" => "Bar", "S" => "Store", "L" => "Lodging", "Q" => "Recreation", "G" => "Gas Station", "E" => "Entertainment", "C" => "Club" ); return $filters[$filterAbbreviation];*/ } 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/ujYvC
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E > > RETURN                                                   1

Function getfiltername:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ujYvC
function name:  getFilterName
number of ops:  3
compiled vars:  !0 = $filterAbbreviation
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   'Restaurant'
   19     2*     > 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/ujYvC
function name:  parseFilterString
number of ops:  4
compiled vars:  !0 = $filterString, !1 = $returnVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1        ASSIGN                                                   !1, ''
   28     2      > RETURN                                                   !1
   29     3*     > RETURN                                                   null

End of function parsefilterstring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.14 ms | 1384 KiB | 13 Q