3v4l.org

run code in 300+ 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:  13
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                                               'implode'
          2        SEND_VAL                                                 'bar%2C'
          3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'symbol'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      $4, 'bar'
         10        ASSIGN                                                   !1, ~5
   15    11        ECHO                                                     !1
   16    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.19 ms | 1394 KiB | 17 Q