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."". $vales.","; } else{ $samp = $samp.","; } } echo rtrim($samp,",");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/G7L8P
function name:  (null)
number of ops:  26
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, ->19
          3    > > FE_FETCH_R                                               $5, !2, ->19
    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, ->16
    9    11    >   CONCAT                                           ~10     !1, ''
         12        CONCAT                                           ~11     ~10, !2
         13        CONCAT                                           ~12     ~11, '%2C'
         14        ASSIGN                                                   !1, ~12
         15      > JMP                                                      ->18
   12    16    >   CONCAT                                           ~14     !1, '%2C'
         17        ASSIGN                                                   !1, ~14
    6    18    > > JMP                                                      ->3
         19    >   FE_FREE                                                  $5
   16    20        INIT_FCALL                                               'rtrim'
         21        SEND_VAR                                                 !1
         22        SEND_VAL                                                 '%2C'
         23        DO_ICALL                                         $16     
         24        ECHO                                                     $16
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.77 ms | 1396 KiB | 17 Q