<?php
$arr = array(
'global' => array(
/* TABS */
array('tabs', 'tabs', 'tabs', array(
'Main' => 'main',
'Gallery' => 'galleryID',
'mera' => 'mera',
)),
array('main','div', 'div'),
array('egice', 'Eice', 'text', '', ''),
array('closeHere', 'closeHere', 'closeHere'),
array('galleryID','div', 'div'),
array('gallery', 'Gallery #1', 'image', '', ''),
array('closeHere', 'closeHere', 'closeHere'),
array('networking', 'div', 'div'),
array('siLype', 'SiLype', 'text', '', ''),
array('gpXCge', 'GpXCge', 'toggle_button', '1', 'Yes', 'No', ''),
array('closeHere', 'closeHere', 'closeHere'),
array('mera', 'div', 'div'),
array('maimera', 'Maimera', 'repeatedText', 'resYI', 'GYL',''),
array('closeHere', 'closeHere', 'closeHere'),
array( 'moures','div', 'div'),
array('meLmo', 'MeLmo', 'text', '', ''),
array('cYSlot', 'CYSlot', 'text', '', ''),
array('closeHere', 'closeHere', 'closeHere'),
array('clT', 'clT', 'clT'),
),
);
$split = [];
$i = 0;
foreach($arr as $k => $v) {
if ($v == 'div') {
$i++;
}
$split[$i][$k] = $v;
}
echo '<pre>';
print_r($split);
echo '</pre>';
Abusive script
This script was stopped while abusing our resources
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename: /in/ppj1O
function name: (null)
number of ops: 20
compiled vars: !0 = $arr, !1 = $split, !2 = $i, !3 = $v, !4 = $k
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
48 1 ASSIGN !1, <array>
49 2 ASSIGN !2, 0
50 3 > FE_RESET_R $8 !0, ->13
4 > > FE_FETCH_R ~9 $8, !3, ->13
5 > ASSIGN !4, ~9
51 6 IS_EQUAL !3, 'div'
7 > JMPZ ~11, ->9
52 8 > PRE_INC !2
54 9 > FETCH_DIM_W $13 !1, !2
10 ASSIGN_DIM $13, !4
11 OP_DATA !3
50 12 > JMP ->4
13 > FE_FREE $8
59 14 ECHO '%3Cpre%3E'
60 15 INIT_FCALL 'print_r'
16 SEND_VAR !1
17 DO_ICALL
61 18 ECHO '%3C%2Fpre%3E'
19 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
139.66 ms | 1001 KiB | 15 Q