3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.21 ms | 1426 KiB | 15 Q