repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Happy New Year (again)
[hiphop-php.git]
/
hphp
/
test
/
quick
/
hopt_array.php
blob
bb5d9c7a6fe2cdb743da90d03a17239b01c61f9a
1
<
?php
2
// Copyright 2004-2014 Facebook. All Rights Reserved.
3
4
echo
"Starting
\n
"
;
5
6
class
C
{
7
public function
foo
() {
8
echo
"foo
\n
"
;
9
$x
=
array
();
10
if
(
$x
) {
11
print_r
(
$x
);
12
}
else
{
13
print_r
(
$x
);
14
}
15
}
16
}
17
18
$c
=
new
C
;
19
$val
=
$c
->
foo
();
20
echo
$val
;
21
echo
"
\n
"
;
22
echo
"Done
\n
"
;