3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * 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]; } 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); else $returnVal = "type = 'VOID'"; return $returnVal; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.90.0150.04812.02
5.4.80.0170.04612.01
5.4.70.0180.04712.01
5.4.60.0160.04512.01
5.4.50.0150.04612.00
5.4.40.0170.04411.99
5.4.30.0210.03911.99
5.4.20.0330.06211.98
5.4.10.0170.04411.99
5.4.00.0140.04511.48
5.3.190.0210.05012.68
5.3.180.0220.04712.67
5.3.170.0180.04612.67
5.3.160.0230.04912.67
5.3.150.0200.04812.67
5.3.140.0200.04712.66
5.3.130.0190.04612.66
5.3.120.0250.04312.66
5.3.110.0190.05112.66
5.3.100.0160.04812.12
5.3.90.0180.04912.10
5.3.80.0240.06112.08
5.3.70.0170.05012.08
5.3.60.0220.04712.07
5.3.50.0210.04812.02
5.3.40.0290.07012.02
5.3.30.0210.04611.99
5.3.20.0190.04711.76
5.3.10.0170.04311.73
5.3.00.0240.06811.71

preferences:
137.87 ms | 1394 KiB | 7 Q