3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr[0] = Array("id"=>4, "otherdata"=>"something"); $arr[1] = Array("id"=>6, "otherdata"=>"something else"); $arr[2] = Array("id"=>15, "otherdata"=>"something totally different"); $string = ''; foreach($arr as $array) { $string .= $array['id'] . ', '; } echo rtrim($string, ', ');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/bPCPV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !1 = $string, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  <array>
    3     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  <array>
    4     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  <array>
    5     6        ASSIGN                                                   !1, ''
    6     7      > FE_RESET_R                                       $7      !0, ->13
          8    > > FE_FETCH_R                                               $7, !2, ->13
    7     9    >   FETCH_DIM_R                                      ~8      !2, 'id'
         10        CONCAT                                           ~9      ~8, '%2C+'
         11        ASSIGN_OP                                     8          !1, ~9
    6    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $7
    9    14        INIT_FCALL                                               'rtrim'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 '%2C+'
         17        DO_ICALL                                         $11     
         18        ECHO                                                     $11
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
250.27 ms | 1004 KiB | 14 Q