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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
hopt_methodcall2.php
blob
034488f140ce7049c5acbc61362af9c85ef7e4d5
1
<
?hh
2
// Copyright 2004-2015 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"
;