3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object1 = (object)['id' => 1, 'name' => 'one']; $object2 = (object)['id' => 2, 'name' => 'two']; $object3 = (object)['id' => 3, 'name' => 'three']; $objects = [$object1, $object2, $object3]; print_r(array_column($objects, 'id'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aqmP6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $object1, !1 = $object2, !2 = $object3, !3 = $objects
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~4      <array>
          1        ASSIGN                                                   !0, ~4
    4     2        CAST                                          8  ~6      <array>
          3        ASSIGN                                                   !1, ~6
    5     4        CAST                                          8  ~8      <array>
          5        ASSIGN                                                   !2, ~8
    6     6        INIT_ARRAY                                       ~10     !0
          7        ADD_ARRAY_ELEMENT                                ~10     !1
          8        ADD_ARRAY_ELEMENT                                ~10     !2
          9        ASSIGN                                                   !3, ~10
    8    10        INIT_FCALL                                               'print_r'
         11        INIT_FCALL                                               'array_column'
         12        SEND_VAR                                                 !3
         13        SEND_VAL                                                 'id'
         14        DO_ICALL                                         $12     
         15        SEND_VAR                                                 $12
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.42 ms | 1399 KiB | 17 Q