PHP - Manual: ADD_ARRAY_ELEMENT
2024-12-26
<?php
/*
* Add elem-value as an element to array-value
* opcode number: 72
*/
$a = array(1,2,3);
print_r($a);
?>
Function name: (null)
Compiled variables: !0=$a
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | INIT_ARRAY | ~0 | 1 | ||
1 | ADD_ARRAY_ELEMENT | ~0 | 2 | |||
2 | ADD_ARRAY_ELEMENT | ~0 | 3 | |||
3 | ASSIGN | !0,~0 | ||||
7 | 4 | SEND_VAR | !0 | |||
5 | DO_FCALL | 1 | 'print_r' | |||
8 | 6 | RETURN | 1 |
官方地址:https://www.php.net/manual/en/internals2.opcodes.add-array-element.php