3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
239.83 ms | 2281 KiB | 14 Q