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>Origial 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 = 8, Position 2 = 29
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 29
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/tMQBK
function name:  (null)
number of ops:  34
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'
   12     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0A'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !2, $9
   13     7      > FE_RESET_R                                       $11     !2, ->29
          8    > > FE_FETCH_R                                       ~12     $11, !3, ->29
          9    >   ASSIGN                                                   !4, ~12
   14    10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%3A'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $14     
         14        FETCH_DIM_R                                      ~15     $14, 0
         15        ASSIGN                                                   !5, ~15
   15    16        INIT_FCALL                                               'explode'
         17        SEND_VAL                                                 '%3A'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $17     
         20        FETCH_DIM_R                                      ~18     $17, 1
         21        ASSIGN                                                   !6, ~18
   16    22        INIT_FCALL                                               'explode'
         23        SEND_VAL                                                 '+'
         24        SEND_VAR                                                 !6
         25        DO_ICALL                                         $21     
         26        ASSIGN_DIM                                               !0, !5
         27        OP_DATA                                                  $21
   13    28      > JMP                                                      ->8
         29    >   FE_FREE                                                  $11
   18    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1396 KiB | 17 Q