3v4l.org

run code in 300+ PHP versions simultaneously
<?php $modList = array(); // $page = file_get_contents('http://neophyte.us/Atelier801/Transformice/API/RAW%20Online%20Moderators.php'); $page = "FR: Modopops CN: Doraemons TR: Shebnem, Sukelaci NL: Lemodile"; print("<b>Original input:</b> $page<br/><br/>"); $string = explode("\n", $page); foreach($string as $key => $communities) { $community = explode(":", $communities)[0]; $mods = explode(":", $communities)[1]; $modList[$community] = explode(" ", $mods); print_r($modList); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 36
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 36
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/gBeVF
function name:  (null)
number of ops:  38
compiled vars:  !0 = $modList, !1 = $page, !2 = $string, !3 = $communities, !4 = $key, !5 = $community, !6 = $mods
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 'FR%3A+Modopops%0ACN%3A+Doraemons%0ATR%3A+Shebnem%2C+Sukelaci%0ANL%3A+Lemodile'
   10     2        ROPE_INIT                                     3  ~10     '%3Cb%3EOriginal+input%3A%3C%2Fb%3E+'
          3        ROPE_ADD                                      1  ~10     ~10, !1
          4        ROPE_END                                      2  ~9      ~10, '%3Cbr%2F%3E%3Cbr%2F%3E'
          5        ECHO                                                     ~9
   12     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '%0A'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $12     
         10        ASSIGN                                                   !2, $12
   13    11      > FE_RESET_R                                       $14     !2, ->36
         12    > > FE_FETCH_R                                       ~15     $14, !3, ->36
         13    >   ASSIGN                                                   !4, ~15
   14    14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%3A'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $17     
         18        FETCH_DIM_R                                      ~18     $17, 0
         19        ASSIGN                                                   !5, ~18
   15    20        INIT_FCALL                                               'explode'
         21        SEND_VAL                                                 '%3A'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $20     
         24        FETCH_DIM_R                                      ~21     $20, 1
         25        ASSIGN                                                   !6, ~21
   16    26        INIT_FCALL                                               'explode'
         27        SEND_VAL                                                 '+'
         28        SEND_VAR                                                 !6
         29        DO_ICALL                                         $24     
         30        ASSIGN_DIM                                               !0, !5
         31        OP_DATA                                                  $24
   17    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
   13    35      > JMP                                                      ->12
         36    >   FE_FREE                                                  $14
   18    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.97 ms | 1396 KiB | 17 Q