3v4l.org

run code in 500+ PHP versions simultaneously
<?php readonly class C { public array $a; public function __construct() { $this->a = ['a', 'b', 'c', 'd']; } } $c = new C(); reset($c->a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zo5dZ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   NEW                                                  $1      'C'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   13     3        INIT_FCALL                                                   'reset'
          4        FETCH_OBJ_W                                          $4      !0, 'a'
          5        SEND_REF                                                     $4
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Class C:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zo5dZ
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                                   'a'
          1        OP_DATA                                                      <array>
    8     2      > RETURN                                                       null

End of function __construct

End of class C.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.1 ms | 1458 KiB | 14 Q