<?php
$types = array('Normal','Fighting','Flying','Poison','Ground','Rock','Bug','Ghost','Steel','Fire','Water','Grass','Electric','Psychic','Ice','Dragon','Dark','Fairy',);
$effect_vals = array(
// Nor Fig Fly Poi Gro Roc Bug Gho Ste Fir Wat Gra Ele Psy Ice Dra Dar Far
array(/* Nor */ 1, 1, 1, 1, 1, .5, 1, 0, .5, 1, 1, 1, 1, 1, 1, 1, 1, 1),
array(/* Fig */ 2, 1, .5, .5, 1, 2, .5, 0, 2, 1, 1, 1, 1, .5, 2, 1, 2, .5),
array(/* Fly */ 1, 2, 1, 1, 1, .5, 2, 1, .5, 1, 1, 2, .5, 1, 1, 1, 1, 1),
array(/* Poi */ 1, 1, 1, .5, .5, .5, 1, .5, 0, 1, 1, 2, 1, 1, 1, 1, 1, 2),
array(/* Gro */ 1, 1, 0, 2, 1, 2, .5, 1, 2, 2, 1, .5, 2, 1, 1, 1, 1, 1),
array(/* Roc */ 1, .5, 2, 1, .5, 1, 2, 1, .5, 2, 1, 1, 1, 1, 2, 1, 1, 1),
array(/* Bug */ 1, .5, .5, .5, 1, 1, 1, .5, .5, .5, 1, 2, 1, 2, 1, 1, 2, .5),
array(/* Gho */ 0, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, .5, 1),
array(/* Ste */ 1, 1, 1, 1, 1, 2, 1, 1, .5, .5, .5, 1, .5, 1, 2, 1, 1, 2),
array(/* Fir */ 1, 1, 1, 1, 1, .5, 2, 1, 2, .5, .5, 2, 1, 1, 2, .5, 1, 1),
array(/* Wat */ 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, .5, .5, 1, 1, 1, .5, 1, 1),
array(/* Gra */ 1, 1, .5, .5, 2, 2, .5, 1, .5, .5, 2, .5, 1, 1, 1, .5, 1, 1),
array(/* Ele */ 1, 1, 2, 1, 0, 1, 1, 1, 1, 1, 2, .5, .5, 1, 1, .5, 1, 1),
array(/* Psy */ 1, 2, 1, 2, 1, 1, 1, 1, .5, 1, 1, 1, 1, .5, 1, 1, 0, 1),
array(/* Ice */ 1, 1, 2, 1, 2, 1, 1, 1, .5, .5, .5, 2, 1, 1, .5, 2, 1, 1),
array(/* Dra */ 1, 1, 1, 1, 1, 1, 1, 1, .5, 1, 1, 1, 1, 1, 1, 2, 1, 0),
array(/* Dar */ 1, .5, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, .5, .5),
array(/* Far */ 1, 2, 1, .5, 1, 1, 1, 1, .5, .5, 1, 1, 1, 1, 1, 2, 2, 1),
);
$format_prefix = '%-3.3s';
$format_header = str_repeat(' %3.3s', count($types));
$format_data = str_repeat(' %3.3s', count($types));
// header
printf($format_prefix, '');
vprintf($format_header, $types);
echo "\n";
// data
foreach(array_map(NULL, $types, $effect_vals) as $val) {
printf($format_prefix, $val[0]);
vprintf($format_data, $val[1]);
echo "\n";
}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 43
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 43
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
filename: /in/7MQok
function name: (null)
number of ops: 45
compiled vars: !0 = $types, !1 = $effect_vals, !2 = $format_prefix, !3 = $format_header, !4 = $format_data, !5 = $val
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
5 1 ASSIGN !1, <array>
27 2 ASSIGN !2, '%25-3.3s'
28 3 INIT_FCALL 'str_repeat'
4 SEND_VAL '+%253.3s'
5 COUNT ~9 !0
6 SEND_VAL ~9
7 DO_ICALL $10
8 ASSIGN !3, $10
29 9 INIT_FCALL 'str_repeat'
10 SEND_VAL '+%253.3s'
11 COUNT ~12 !0
12 SEND_VAL ~12
13 DO_ICALL $13
14 ASSIGN !4, $13
32 15 INIT_FCALL 'printf'
16 SEND_VAR !2
17 SEND_VAL ''
18 DO_ICALL
33 19 INIT_FCALL 'vprintf'
20 SEND_VAR !3
21 SEND_VAR !0
22 DO_ICALL
34 23 ECHO '%0A'
37 24 INIT_FCALL 'array_map'
25 SEND_VAL null
26 SEND_VAR !0
27 SEND_VAR !1
28 DO_ICALL $17
29 > FE_RESET_R $18 $17, ->43
30 > > FE_FETCH_R $18, !5, ->43
38 31 > INIT_FCALL 'printf'
32 SEND_VAR !2
33 FETCH_DIM_R ~19 !5, 0
34 SEND_VAL ~19
35 DO_ICALL
39 36 INIT_FCALL 'vprintf'
37 SEND_VAR !4
38 FETCH_DIM_R ~21 !5, 1
39 SEND_VAL ~21
40 DO_ICALL
40 41 ECHO '%0A'
37 42 > JMP ->30
43 > FE_FREE $18
41 44 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
178.06 ms | 1400 KiB | 21 Q