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_methodcall2.php
blob
0f6a9baaaef1fbc8fce41dd0d6494a04d4c4cf66
1
<
?php
2
// Copyright 2004-2014 Facebook. All Rights Reserved.
3
4
5
echo
"Starting
\n
"
;
6
7
function
foo
(
$a
,
$b
,
$c
) {
8
return
$a
+
$b
+
$c
;
9
}
10
11
function
main
() {
12
$x
=
4
;
13
$x
=
foo
(
1
,
$x
==
3
?
3
:
2
,
$x
);
14
echo
$x
;
15
}
16
17
main
();
18
19
echo
"
\n
done"
;