FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
igbinary/benchmark/unserialize-arrayarray.php at 3.2.16 · igbinary/igbinary · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
igbinary
/
igbinary
Public
forked from
phadej/igbinary
Notifications
You must be signed in to change notification settings
Fork
76
Star
786
Code
Issues
20
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
igbinary
/
benchmark
/
unserialize-arrayarray.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (25 loc) · 643 Bytes
Breadcrumbs
igbinary
/
benchmark
/
unserialize-arrayarray.php
Copy path
File metadata and controls
30 lines (25 loc) · 643 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
26
27
28
29
30
<?php
// Description: Unserialize large array of arrays
require_once
'
bench.php
'
;
call_user_func
(
function
() {
$
b
=
new
Bench
(
'
unserialize-arrayarray
'
);
srand
(
13333
);
$
data
= [];
for
(
$
i
=
0
;
$
i
<
1000
;
$
i
++) {
$
part
= [];
for
(
$
j
=
0
;
$
j
<
rand
() %
20
;
$
j
++) {
$
part
[] =
rand
() %
300
;
}
$
data
[] =
$
part
;
}
$
ser
=
igbinary_serialize
(
$
data
);
for
(
$
i
=
0
;
$
i
<
40
;
$
i
++) {
$
b
->
start
();
for
(
$
j
=
0
;
$
j
<
500
;
$
j
++) {
$
array
=
igbinary_unserialize
(
$
ser
);
}
$
b
->
stop
(
$
j
);
$
b
->
write
();
unset(
$
array
);
}
});
Back
|
FazBrowse Home
|
New Git URL