3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = array ( 1 => array ( 'symbol' => 'salad' ), 2 => array ( 'symbol' => 'wine' ), 3 => array ( 'symbol' => 'beer' ) ); $res = implode("bar,", array_column($data, 'symbol'))."bar"; echo $res;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j31Ft
function name:  (null)
number of ops:  10
compiled vars:  !0 = $data, !1 = $res
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'array_column'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     'symbol'
          4        DO_ICALL                                             $3      
          5        FRAMELESS_ICALL_2                implode             ~4      'bar%2C', $3
          6        CONCAT                                               ~5      ~4, 'bar'
          7        ASSIGN                                                       !1, ~5
   15     8        ECHO                                                         !1
   16     9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.95 ms | 2225 KiB | 14 Q