3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value='xyz:101,xyz:102,xyz:103,xyz:104,xyz:105,ABC:201,xyz:202,xyz:203,xyz:204,xyz:205'; $arr = explode(",", $value); Foreach($arr as $pair){ $parts =explode(":", $pair); Echo "<tr>\n<td>"; Echo $parts[0]; Echo "</td>\n<td>"; Echo $parts[1]; Echo "</td>\n</tr>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/TbtbX
function name:  (null)
number of ops:  23
compiled vars:  !0 = $value, !1 = $arr, !2 = $pair, !3 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'xyz%3A101%2Cxyz%3A102%2Cxyz%3A103%2Cxyz%3A104%2Cxyz%3A105%2CABC%3A201%2Cxyz%3A202%2Cxyz%3A203%2Cxyz%3A204%2Cxyz%3A205'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6      > FE_RESET_R                                       $7      !1, ->21
          7    > > FE_FETCH_R                                               $7, !2, ->21
    8     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%3A'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
    9    13        ECHO                                                     '%3Ctr%3E%0A%3Ctd%3E'
   10    14        FETCH_DIM_R                                      ~10     !3, 0
         15        ECHO                                                     ~10
   11    16        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd%3E'
   12    17        FETCH_DIM_R                                      ~11     !3, 1
         18        ECHO                                                     ~11
   13    19        ECHO                                                     '%3C%2Ftd%3E%0A%3C%2Ftr%3E'
    7    20      > JMP                                                      ->7
         21    >   FE_FREE                                                  $7
   14    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.66 ms | 998 KiB | 14 Q