3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "www.mylink1.com,link copy 1 www.mylink2.com, link copy 2 www.mylink3.com,link copy 3"; $lines = explode(PHP_EOL, $str); Foreach($lines as $line){ $linktext = explode(",", $line); Echo "<li><a href='$linktext[0]'>$linktext[1]</a></li>\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/9DEoo
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $lines, !2 = $line, !3 = $linktext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'www.mylink1.com%2Clink+copy+1%0Awww.mylink2.com%2C+link+copy+2%0Awww.mylink3.com%2Clink+copy+3'
    7     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    9     6      > FE_RESET_R                                       $7      !1, ->22
          7    > > FE_FETCH_R                                               $7, !2, ->22
   10     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2C'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
   11    13        ROPE_INIT                                     5  ~13     '%3Cli%3E%3Ca+href%3D%27'
         14        FETCH_DIM_R                                      ~10     !3, 0
         15        ROPE_ADD                                      1  ~13     ~13, ~10
         16        ROPE_ADD                                      2  ~13     ~13, '%27%3E'
         17        FETCH_DIM_R                                      ~11     !3, 1
         18        ROPE_ADD                                      3  ~13     ~13, ~11
         19        ROPE_END                                      4  ~12     ~13, '%3C%2Fa%3E%3C%2Fli%3E%0A'
         20        ECHO                                                     ~12
    9    21      > JMP                                                      ->7
         22    >   FE_FREE                                                  $7
   12    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
270.66 ms | 1010 KiB | 14 Q