3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Entity { public $name = 'Alice'; public function __construct(string $name) { $this->name = $name; } }; $entities = [ new Entity('Alice'), new Entity('Bob') ]; var_dump(array_column($entities, 'name'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VIVPU
function name:  (null)
number of ops:  17
compiled vars:  !0 = $entities
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Entity'
          1        SEND_VAL_EX                                              'Alice'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~3      $1
          4        NEW                                              $4      'Entity'
          5        SEND_VAL_EX                                              'Bob'
          6        DO_FCALL                                      0          
          7        ADD_ARRAY_ELEMENT                                ~3      $4
          8        ASSIGN                                                   !0, ~3
   11     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'array_column'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'name'
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Class Entity:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VIVPU
function name:  __construct
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        ASSIGN_OBJ                                               'name'
          2        OP_DATA                                                  !0
          3      > RETURN                                                   null

End of function __construct

End of class Entity.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.26 ms | 1395 KiB | 17 Q