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'; $rows = explode(',', $value); ?> <table width='50%' border='1' cellpadding='10' cellspacing='10'> <tr> <th>Category</th> <th>Code</th> </tr> <?php foreach ($rows as $row) { $values = explode(':', $row); ?> <tr> <td><?php echo $values[0]; ?></td> <td><?php echo $values[1]; ?></td> </tr> <?php } ?> </table>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/tJcrc
function name:  (null)
number of ops:  25
compiled vars:  !0 = $value, !1 = $rows, !2 = $row, !3 = $values
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
    8     6        ECHO                                                     '%3Ctable+width%3D%2750%25%27+border%3D%271%27+cellpadding%3D%2710%27+cellspacing%3D%2710%27%3E%0A++++%3Ctr%3E%0A++++++++%3Cth%3ECategory%3C%2Fth%3E%0A++++++++%3Cth%3ECode%3C%2Fth%3E%0A++++%3C%2Ftr%3E%0A'
   15     7      > FE_RESET_R                                       $7      !1, ->22
          8    > > FE_FETCH_R                                               $7, !2, ->22
   16     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3A'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !3, $8
   19    14        ECHO                                                     '++++%3Ctr%3E%0A++++++++%3Ctd%3E'
   20    15        FETCH_DIM_R                                      ~10     !3, 0
         16        ECHO                                                     ~10
         17        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   21    18        FETCH_DIM_R                                      ~11     !3, 1
         19        ECHO                                                     ~11
         20        ECHO                                                     '%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A'
   15    21      > JMP                                                      ->8
         22    >   FE_FREE                                                  $7
   28    23        ECHO                                                     '%3C%2Ftable%3E'
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.47 ms | 999 KiB | 14 Q