FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
igbinary/benchmark/unserialize-stringarray.b.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-stringarray.b.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (15 loc) · 478 Bytes
Breadcrumbs
igbinary
/
benchmark
/
unserialize-stringarray.b.php
Copy path
File metadata and controls
20 lines (15 loc) · 478 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
<?php
// Description: Unserialize large strings array
require_once
'
bench.php
'
;
call_user_func
(
function
() {
$
b
=
new
Bench
(
'
unserialize-string-array
'
);
$
ser
=
igbinary_serialize
(
unserialize
(
file_get_contents
(
__DIR__
.
DIRECTORY_SEPARATOR
.
'
l10n-en.ser
'
)));
for
(
$
i
=
0
;
$
i
<
40
;
$
i
++) {
$
b
->
start
();
for
(
$
j
=
0
;
$
j
<
500
;
$
j
++) {
$
array
=
igbinary_unserialize
(
$
ser
);
}
$
b
->
stop
(
$
j
);
$
b
->
write
();
}
});
Back
|
FazBrowse Home
|
New Git URL