3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = array(); array_push($ids, array('case' => 1, 'foo' => 'zzz')); array_push($ids, array('case' => 3, 'foo' => 'qqq')); array_push($ids, array('case' => 4, 'foo' => 'xxx')); array_push($ids, array('case' => 5, 'foo' => 'kkk')); array_push($ids, array('case' => 6, 'foo' => 'sss')); $ids_list = ''; foreach($ids as $id) { $ids_list .= $ids['case'] . ','; } rtrim($ids_list, ','); echo $ids_list; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 28
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/336bo
function name:  (null)
number of ops:  35
compiled vars:  !0 = $ids, !1 = $ids_list, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_push'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'array_push'
          6        SEND_REF                                                 !0
          7        SEND_VAL                                                 <array>
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'array_push'
         10        SEND_REF                                                 !0
         11        SEND_VAL                                                 <array>
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'array_push'
         14        SEND_REF                                                 !0
         15        SEND_VAL                                                 <array>
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'array_push'
         18        SEND_REF                                                 !0
         19        SEND_VAL                                                 <array>
         20        DO_ICALL                                                 
   10    21        ASSIGN                                                   !1, ''
   11    22      > FE_RESET_R                                       $10     !0, ->28
         23    > > FE_FETCH_R                                               $10, !2, ->28
   13    24    >   FETCH_DIM_R                                      ~11     !0, 'case'
         25        CONCAT                                           ~12     ~11, '%2C'
         26        ASSIGN_OP                                     8          !1, ~12
   11    27      > JMP                                                      ->23
         28    >   FE_FREE                                                  $10
   16    29        INIT_FCALL                                               'rtrim'
         30        SEND_VAR                                                 !1
         31        SEND_VAL                                                 '%2C'
         32        DO_ICALL                                                 
   17    33        ECHO                                                     !1
   19    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.59 ms | 1396 KiB | 17 Q