3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ctr = 0; while ($ctr < 7) { $RespondentsResultSetArray[$ctr] = array( "Firstname" => "sample", "Lastname" => "name" ); $ctr = $ctr + 1; } foreach ($RespondentsResultSetArray as $key) { // echo $key["Firstname"] . ' ' . $key["Lastname"] . ', '; } $string = ""; foreach($RespondentsResultSetArray as $values) { //echo implode(array_values($values),","); $string= $string.",".implode(array_values($values),","); } $string=ltrim($string,","); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 26
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 26
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 11
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/0O5H1
function name:  (null)
number of ops:  34
compiled vars:  !0 = $ctr, !1 = $RespondentsResultSetArray, !2 = $key, !3 = $string, !4 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1      > JMP                                                      ->6
    5     2    >   ASSIGN_DIM                                               !1, !0
    6     3        OP_DATA                                                  <array>
   10     4        ADD                                              ~7      !0, 1
          5        ASSIGN                                                   !0, ~7
    3     6    >   IS_SMALLER                                               !0, 7
          7      > JMPNZ                                                    ~9, ->2
   13     8    > > FE_RESET_R                                       $10     !1, ->11
          9    > > FE_FETCH_R                                               $10, !2, ->11
         10    > > JMP                                                      ->9
         11    >   FE_FREE                                                  $10
   18    12        ASSIGN                                                   !3, ''
   19    13      > FE_RESET_R                                       $12     !1, ->26
         14    > > FE_FETCH_R                                               $12, !4, ->26
   22    15    >   CONCAT                                           ~13     !3, '%2C'
         16        INIT_FCALL                                               'implode'
         17        INIT_FCALL                                               'array_values'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                         $14     
         20        SEND_VAR                                                 $14
         21        SEND_VAL                                                 '%2C'
         22        DO_ICALL                                         $15     
         23        CONCAT                                           ~16     ~13, $15
         24        ASSIGN                                                   !3, ~16
   19    25      > JMP                                                      ->14
         26    >   FE_FREE                                                  $12
   25    27        INIT_FCALL                                               'ltrim'
         28        SEND_VAR                                                 !3
         29        SEND_VAL                                                 '%2C'
         30        DO_ICALL                                         $18     
         31        ASSIGN                                                   !3, $18
   26    32        ECHO                                                     !3
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.64 ms | 1400 KiB | 19 Q