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 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/putem
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arryvalue, !1 = $vales
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $3      !0, ->12
          2    > > FE_FETCH_R                                               $3, !1, ->12
    6     3    >   ECHO                                                     !1
    7     4        INIT_FCALL                                               'next'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                         $4      
          7      > JMPZ                                                     $4, ->10
    8     8    >   ECHO                                                     '%2C'
          9      > JMP                                                      ->11
   11    10    >   ECHO                                                     ''
    5    11    > > JMP                                                      ->2
         12    >   FE_FREE                                                  $3
   13    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.52 ms | 1395 KiB | 15 Q