Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/48UZL
function name: (null)
number of ops: 34
compiled vars: !0 = $tags1, !1 = $tags2, !2 = $str1, !3 = $str2
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
37 0 E > ASSIGN !0, 'code%2C+test'
38 1 ASSIGN !1, 'test%2C+code'
39 2 INIT_FCALL 'getsimilaritycoefficient'
3 SEND_VAR !0
4 SEND_VAR !1
5 DO_FCALL 0 $6
6 ECHO $6
41 7 ECHO '%0A'
43 8 ASSIGN !0, 'test%2C+code'
44 9 ASSIGN !1, 'test%2C+code'
45 10 INIT_FCALL 'getsimilaritycoefficient'
11 SEND_VAR !0
12 SEND_VAR !1
13 DO_FCALL 0 $9
14 ECHO $9
47 15 ECHO '%0A'
49 16 ASSIGN !2, 'two+items+that+are+cool'
50 17 ASSIGN !3, 'two+items+are+cool'
51 18 INIT_FCALL 'getsimilaritycoefficient'
19 SEND_VAR !2
20 SEND_VAR !3
21 SEND_VAL '+'
22 DO_FCALL 0 $12
23 ECHO $12
52 24 ECHO '%0A'
54 25 ASSIGN !2, 'I%27ve+got+two+COOL+items'
55 26 ASSIGN !3, 'two+items+are+cool'
56 27 INIT_FCALL 'getsimilaritycoefficient'
28 SEND_VAR !2
29 SEND_VAR !3
30 SEND_VAL '+'
31 DO_FCALL 0 $15
32 ECHO $15
33 > RETURN 1
Function getsimilaritycoefficient:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/48UZL
function name: getSimilarityCoefficient
number of ops: 52
compiled vars: !0 = $item1, !1 = $item2, !2 = $separator, !3 = $arr_intersection, !4 = $arr_union, !5 = $coefficient
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
25 0 E > RECV !0
1 RECV !1
2 RECV_INIT !2 '%2C'
27 3 INIT_FCALL 'array_unique'
4 INIT_FCALL 'array_map'
5 SEND_VAL 'trim'
6 INIT_FCALL 'explode'
7 SEND_VAR !2
8 INIT_FCALL 'strtolower'
9 SEND_VAR !0
10 DO_ICALL $6
11 SEND_VAR $6
12 DO_ICALL $7
13 SEND_VAR $7
14 DO_ICALL $8
15 SEND_VAR $8
16 DO_ICALL $9
17 ASSIGN !0, $9
28 18 INIT_FCALL 'array_unique'
19 INIT_FCALL 'array_map'
20 SEND_VAL 'trim'
21 INIT_FCALL 'explode'
22 SEND_VAR !2
23 INIT_FCALL 'strtolower'
24 SEND_VAR !1
25 DO_ICALL $11
26 SEND_VAR $11
27 DO_ICALL $12
28 SEND_VAR $12
29 DO_ICALL $13
30 SEND_VAR $13
31 DO_ICALL $14
32 ASSIGN !1, $14
29 33 INIT_FCALL 'array_intersect'
34 SEND_VAR !1
35 SEND_VAR !0
36 DO_ICALL $16
37 ASSIGN !3, $16
30 38 INIT_FCALL 'array_unique'
39 INIT_FCALL 'array_merge'
40 SEND_VAR !0
41 SEND_VAR !1
42 DO_ICALL $18
43 SEND_VAR $18
44 DO_ICALL $19
45 ASSIGN !4, $19
31 46 COUNT ~21 !3
47 COUNT ~22 !4
48 DIV ~23 ~21, ~22
49 ASSIGN !5, ~23
33 50 > RETURN !5
34 51* > RETURN null
End of function getsimilaritycoefficient
Generated using Vulcan Logic Dumper, using php 8.0.0