Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/ZOodL
function name: (null)
number of ops: 25
compiled vars: !0 = $obj1, !1 = $obj2
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
32 0 E > NEW $2 'stdClass'
1 DO_FCALL 0
2 ASSIGN !0, $2
33 3 NEW $5 'stdClass'
4 DO_FCALL 0
5 ASSIGN !1, $5
34 6 ASSIGN_OBJ !0, 'foo'
7 OP_DATA 'foo'
35 8 ASSIGN_OBJ !0, 'someArr'
9 OP_DATA <array>
36 10 ASSIGN_OBJ !0, 'obj2'
11 OP_DATA !1
37 12 ASSIGN_OBJ !1, 'bar'
13 OP_DATA 'bar'
38 14 NEW $13 'Baz'
15 DO_FCALL 0
16 ASSIGN_OBJ !1, 'baz'
17 OP_DATA $13
40 18 INIT_FCALL 'var_dump'
19 INIT_STATIC_METHOD_CALL 'ObjectToArrayConverter', 'toArray'
20 SEND_VAR !0
21 DO_FCALL 0 $15
22 SEND_VAR $15
23 DO_ICALL
24 > RETURN 1
Class ObjectToArrayConverter:
Function toarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 5
filename: /in/ZOodL
function name: toArray
number of ops: 26
compiled vars: !0 = $value
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
10 0 E > RECV !0
12 1 TYPE_CHECK 256 ~1 !0
2 > JMPNZ_EX ~1 ~1, ->5
3 > TYPE_CHECK 128 ~2 !0
4 BOOL ~1 ~2
5 > BOOL_NOT ~3 ~1
6 > JMPZ ~3, ->8
13 7 > > RETURN !0
16 8 > TYPE_CHECK 256 ~4 !0
9 > JMPZ_EX ~4 ~4, ->15
10 > INIT_FCALL 'method_exists'
11 SEND_VAR !0
12 SEND_VAL '__toArray'
13 DO_ICALL $5
14 BOOL ~4 $5
15 > > JMPZ ~4, ->19
17 16 > INIT_METHOD_CALL !0, '__toArray'
17 DO_FCALL 0 $6
18 > RETURN $6
20 19 > INIT_FCALL 'array_map'
20 SEND_VAL 'ObjectToArrayConverter%3A%3AtoArray'
21 CAST 7 ~7 !0
22 SEND_VAL ~7
23 DO_ICALL $8
24 > RETURN $8
21 25* > RETURN null
End of function toarray
End of class ObjectToArrayConverter.
Class Baz:
Function __toarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/ZOodL
function name: __toArray
number of ops: 2
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
28 0 E > > RETURN <array>
29 1* > RETURN null
End of function __toarray
End of class Baz.
Generated using Vulcan Logic Dumper, using php 8.0.0