3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dataSet = array(array('id'=>7539, 'os'=>'Android'), array('id'=>7540, 'os'=>'iOS')); //foreach $ids = array(); foreach($dataSet as $data) { $ids[] = $data['id']; } echo implode(',', $ids); echo PHP_EOL; //array_column echo implode(',', array_column($dataSet, 'id'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/WNMLX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dataSet, !1 = $ids, !2 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    6     1        ASSIGN                                                       !1, <array>
    7     2      > FE_RESET_R                                           $5      !0, ->8
          3    > > FE_FETCH_R                                                   $5, !2, ->8
    8     4    >   FETCH_DIM_R                                          ~7      !2, 'id'
          5        ASSIGN_DIM                                                   !1
          6        OP_DATA                                                      ~7
    7     7      > JMP                                                          ->3
          8    >   FE_FREE                                                      $5
   11     9        FRAMELESS_ICALL_2                implode             ~8      '%2C', !1
         10        ECHO                                                         ~8
   13    11        ECHO                                                         '%0A'
   15    12        INIT_FCALL                                                   'array_column'
         13        SEND_VAR                                                     !0
         14        SEND_VAL                                                     'id'
         15        DO_ICALL                                             $9      
         16        FRAMELESS_ICALL_2                implode             ~10     '%2C', $9
         17        ECHO                                                         ~10
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.74 ms | 1854 KiB | 14 Q