blob: f182990034cb09e87b0c34c48ec2efa36c0deac2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
$arr = explode("\n",file_get_contents("redis.c"));
$idx = [];
foreach($arr as $str) {
if(strpos($str, "zend_parse_method_parameters")!==false) {
$start = strpos($str, '"O');
$str = substr($str, $start+1);
$end = strpos($str, '"');
$str = substr($str, 0, $end);
if(!isset($idx[$str])) {
$idx[$str]=1;
} else {
$idx[$str]++;
}
}
}
arsort($idx);
foreach($idx as $proto => $count) {
echo $proto . "\t" . $count . "\n";
}
?>
|