3v4l.org

run code in 300+ PHP versions simultaneously
<?php $appInfo = array("idNum1|dir/path1","idNum2|dir/path2","idNum3|dir/path3"); $apps = array(); foreach ($appInfo as $app) { list($id, $path) = explode('|', $app); $apps[] = array('appId' => $id, 'appDir' => $path); } print_r($apps);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/m6XhV
function name:  (null)
number of ops:  23
compiled vars:  !0 = $appInfo, !1 = $apps, !2 = $app, !3 = $id, !4 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2      > FE_RESET_R                                       $7      !0, ->18
          3    > > FE_FETCH_R                                               $7, !2, ->18
    6     4    >   INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%7C'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $8      
          8        FETCH_LIST_R                                     $9      $8, 0
          9        ASSIGN                                                   !3, $9
         10        FETCH_LIST_R                                     $11     $8, 1
         11        ASSIGN                                                   !4, $11
         12        FREE                                                     $8
    7    13        INIT_ARRAY                                       ~14     !3, 'appId'
         14        ADD_ARRAY_ELEMENT                                ~14     !4, 'appDir'
         15        ASSIGN_DIM                                               !1
         16        OP_DATA                                                  ~14
    5    17      > JMP                                                      ->3
         18    >   FE_FREE                                                  $7
    9    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.13 ms | 1011 KiB | 15 Q