3v4l.org

run code in 500+ PHP versions simultaneously
<?php $txt = "123~456!!!789~012!!!345~678!!!901~234!!!567~890!!!1234~5678"; foreach(explode("!!!",$txt) AS $key => $subarray) { $array[$key] = explode("~",$subarray); } print_r($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/rPmAP
function name:  (null)
number of ops:  20
compiled vars:  !0 = $txt, !1 = $subarray, !2 = $key, !3 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '123%7E456%21%21%21789%7E012%21%21%21345%7E678%21%21%21901%7E234%21%21%21567%7E890%21%21%211234%7E5678'
    4     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%21%21%21'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $5      
          5      > FE_RESET_R                                           $6      $5, ->15
          6    > > FE_FETCH_R                                           ~7      $6, !1, ->15
          7    >   ASSIGN                                                       !2, ~7
    5     8        INIT_FCALL                                                   'explode'
          9        SEND_VAL                                                     '%7E'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                             $10     
         12        ASSIGN_DIM                                                   !3, !2
         13        OP_DATA                                                      $10
    4    14      > JMP                                                          ->6
         15    >   FE_FREE                                                      $6
    8    16        INIT_FCALL                                                   'print_r'
         17        SEND_VAR                                                     !3
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.81 ms | 2970 KiB | 15 Q