3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.61 ms | 1400 KiB | 17 Q