3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arryvalue = array( a,b,c,d,e,f ); foreach ($arryvalue as $vales) { echo $vales; if (next($arryvalue)) { echo ','; } else{ echo ','; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 24
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/JJa0a
function name:  (null)
number of ops:  26
compiled vars:  !0 = $arryvalue, !1 = $vales
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~2      'a'
          1        INIT_ARRAY                                       ~3      ~2
          2        FETCH_CONSTANT                                   ~4      'b'
          3        ADD_ARRAY_ELEMENT                                ~3      ~4
          4        FETCH_CONSTANT                                   ~5      'c'
          5        ADD_ARRAY_ELEMENT                                ~3      ~5
          6        FETCH_CONSTANT                                   ~6      'd'
          7        ADD_ARRAY_ELEMENT                                ~3      ~6
          8        FETCH_CONSTANT                                   ~7      'e'
          9        ADD_ARRAY_ELEMENT                                ~3      ~7
         10        FETCH_CONSTANT                                   ~8      'f'
         11        ADD_ARRAY_ELEMENT                                ~3      ~8
    2    12        ASSIGN                                                   !0, ~3
    5    13      > FE_RESET_R                                       $10     !0, ->24
         14    > > FE_FETCH_R                                               $10, !1, ->24
    6    15    >   ECHO                                                     !1
    7    16        INIT_FCALL                                               'next'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                         $11     
         19      > JMPZ                                                     $11, ->22
    8    20    >   ECHO                                                     '%2C'
         21      > JMP                                                      ->23
   11    22    >   ECHO                                                     '%2C'
    5    23    > > JMP                                                      ->14
         24    >   FE_FREE                                                  $10
   13    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.97 ms | 1396 KiB | 15 Q