Created
July 15, 2020 20:58
-
-
Save ElvenSpellmaker/940fa8b4fd5523a81a42fb9686266d67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -d vld.active=1 index.php | |
Finding entry points | |
Branch analysis from position: 0 | |
1 jumps found. (Code = 62) Position 1 = -2 | |
filename: /c/index.php | |
function name: (null) | |
number of ops: 38 | |
compiled vars: !0 = $class, !1 = $foo, !2 = $class2 | |
line #* E I O op fetch ext return operands | |
------------------------------------------------------------------------------------- | |
3 0 E > INCLUDE_OR_EVAL $3 'test.php', REQUIRE | |
1 ASSIGN !0, $3 | |
4 2 INIT_METHOD_CALL !0, 'getName' | |
3 DO_FCALL 0 $5 | |
4 CONCAT ~6 'Get+Name%3A+', $5 | |
5 ECHO ~6 | |
7 6 INIT_FCALL 'file_get_contents' | |
7 SEND_VAL 'test.php' | |
8 DO_ICALL $7 | |
9 ASSIGN !1, $7 | |
8 10 INIT_FCALL 'str_replace' | |
11 SEND_VAL 'foo' | |
12 SEND_VAL 'bar' | |
13 SEND_VAR !1 | |
14 DO_ICALL $9 | |
15 ASSIGN !1, $9 | |
9 16 INIT_FCALL 'file_put_contents' | |
17 SEND_VAL 'test.php' | |
18 SEND_VAR !1 | |
19 DO_ICALL | |
11 20 ECHO '%0A' | |
13 21 INCLUDE_OR_EVAL $12 'test.php', REQUIRE | |
22 ASSIGN !2, $12 | |
14 23 INIT_METHOD_CALL !2, 'getName' | |
24 DO_FCALL 0 $14 | |
25 CONCAT ~15 'Get+Name%3A+', $14 | |
26 ECHO ~15 | |
17 27 INIT_FCALL 'str_replace' | |
28 SEND_VAL 'bar' | |
29 SEND_VAL 'foo' | |
30 SEND_VAR !1 | |
31 DO_ICALL $16 | |
32 ASSIGN !1, $16 | |
18 33 INIT_FCALL 'file_put_contents' | |
34 SEND_VAL 'test.php' | |
35 SEND_VAR !1 | |
36 DO_ICALL | |
19 37 > RETURN 1 | |
branch: # 0; line: 3- 19; sop: 0; eop: 37; out0: -2 | |
path #1: 0, | |
Finding entry points | |
Branch analysis from position: 0 | |
1 jumps found. (Code = 62) Position 1 = -2 | |
filename: /c/test.php | |
function name: (null) | |
number of ops: 7 | |
compiled vars: none | |
line #* E I O op fetch ext return operands | |
------------------------------------------------------------------------------------- | |
3 0 E > ECHO 'Title%3A+foo' | |
1 ECHO '%0A' | |
5 2 DECLARE_ANON_CLASS 9.88131e-324 | |
3 NEW $1 0 | |
4 DO_FCALL 0 | |
5 > RETURN $1 | |
9 6* > RETURN 1 | |
branch: # 0; line: 3- 9; sop: 0; eop: 6 | |
path #1: 0, | |
Class class@anonymous: | |
Function getname: | |
Finding entry points | |
Branch analysis from position: 0 | |
1 jumps found. (Code = 62) Position 1 = -2 | |
filename: /c/test.php | |
function name: getName | |
number of ops: 3 | |
compiled vars: none | |
line #* E I O op fetch ext return operands | |
------------------------------------------------------------------------------------- | |
7 0 E > FETCH_OBJ_R ~0 'name' | |
1 > RETURN ~0 | |
2* > RETURN null | |
branch: # 0; line: 7- 7; sop: 0; eop: 2 | |
path #1: 0, | |
End of function getname | |
End of class class@anonymous. | |
Title: foo | |
Get Name: foo | |
Finding entry points | |
Branch analysis from position: 0 | |
1 jumps found. (Code = 62) Position 1 = -2 | |
filename: /c/test.php | |
function name: (null) | |
number of ops: 7 | |
compiled vars: none | |
line #* E I O op fetch ext return operands | |
------------------------------------------------------------------------------------- | |
3 0 E > ECHO 'Title%3A+bar' | |
1 ECHO '%0A' | |
5 2 DECLARE_ANON_CLASS 9.88131e-324 | |
3 NEW $1 0 | |
4 DO_FCALL 0 | |
5 > RETURN $1 | |
9 6* > RETURN 1 | |
branch: # 0; line: 3- 9; sop: 0; eop: 6 | |
path #1: 0, | |
Class class@anonymous: | |
Function getname: | |
Finding entry points | |
Branch analysis from position: 0 | |
1 jumps found. (Code = 62) Position 1 = -2 | |
filename: /c/test.php | |
function name: getName | |
number of ops: 3 | |
compiled vars: none | |
line #* E I O op fetch ext return operands | |
------------------------------------------------------------------------------------- | |
7 0 E > FETCH_OBJ_R ~0 'name' | |
1 > RETURN ~0 | |
2* > RETURN null | |
branch: # 0; line: 7- 7; sop: 0; eop: 2 | |
path #1: 0, | |
End of function getname | |
End of class class@anonymous. | |
Title: bar | |
Get Name: foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment