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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.43 ms | 1396 KiB | 17 Q