3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "balıkesir:şanlıurfa:statyum-ankara kırıkkale:kocaeli:statyum-ankara van:mardin:statyum-ankara ağrı:trabzon:statyum-ankara elazığ:hatay:statyum-ankara"; $list = explode(PHP_EOL, $data); foreach($list as $l) { $items = explode(":", $l); if (count($items) > 0 ) { echo $items[2] . "#" . $items[0] . ":" . $items[1] . "\n"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 26
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 25
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/6EOcV
function name:  (null)
number of ops:  28
compiled vars:  !0 = $data, !1 = $list, !2 = $l, !3 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'bal%C4%B1kesir%3A%C5%9Fanl%C4%B1urfa%3Astatyum-ankara%0Ak%C4%B1r%C4%B1kkale%3Akocaeli%3Astatyum-ankara%0Avan%3Amardin%3Astatyum-ankara%0Aa%C4%9Fr%C4%B1%3Atrabzon%3Astatyum-ankara%0Aelaz%C4%B1%C4%9F%3Ahatay%3Astatyum-ankara'
    9     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   11     6      > FE_RESET_R                                       $7      !1, ->26
          7    > > FE_FETCH_R                                               $7, !2, ->26
   12     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%3A'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
   14    13        COUNT                                            ~10     !3
         14        IS_SMALLER                                               0, ~10
         15      > JMPZ                                                     ~11, ->25
   15    16    >   FETCH_DIM_R                                      ~12     !3, 2
         17        CONCAT                                           ~13     ~12, '%23'
         18        FETCH_DIM_R                                      ~14     !3, 0
         19        CONCAT                                           ~15     ~13, ~14
         20        CONCAT                                           ~16     ~15, '%3A'
         21        FETCH_DIM_R                                      ~17     !3, 1
         22        CONCAT                                           ~18     ~16, ~17
         23        CONCAT                                           ~19     ~18, '%0A'
         24        ECHO                                                     ~19
   11    25    > > JMP                                                      ->7
         26    >   FE_FREE                                                  $7
   19    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.71 ms | 1446 KiB | 14 Q