<?php
$defaults = [
'useremail' => null,
'distributor' => null,
'enduser' => null,
'distname' => null,
'contname' => null,
'testingdate' => null,
'dist_phone' => null,
'end_phone' => null,
'dist_email' => null,
'end_email' => null,
'w_material' => null,
'w_condition' => null,
'w_grade' => null,
'w_add_conditions' => null,
'w_hardness' => null,
'w_workholding' => null,
'machine_brand' => null,
'machine_model' => null,
'machine_type' => null,
'machine_max_rpm' => null,
'machine_horsepower' => null,
'spindle_taper' => null,
'coolant_type' => null,
'cooland_delivery' => null,
'concentration_percent' => null,
'tool_holder_type' => null,
'holder_condition' => null,
'holder_balancing' => null,
'static_runout' => null,
'holder_projection' => null,
'customer_parts_tool' => null,
'customer_linear_inches_tool' => null,
'customer_cu_inches_tool' => null,
'customer_cut_time_tool' => null,
'customer_cycle_time_reduction_pp' => null,
'customer_spindle_load' => null,
'customer_surface_finish_req' => null,
'tool_brand' => null,
'tool_style' => null,
'tool_coating' => null,
'tool_edp' => null,
'lot_shank' => null,
'lot_pkg' => null,
'number_flutes' => null,
'cutting_diameter_1' => null,
'shank_diameter_2' => null,
'length_cut_loc' => null,
'overall_length_oal' => null,
'length_below_shank_lbs' => null,
'tool_coating' => null,
'corner_construction_type' => null,
'corner_construction_size' => null,
'shank_construction' => null,
'surfacefeet' => null,
'revolutionsperminute' => null,
'feed_per_tooth_fpt' => null,
'ipm' => null,
'adoc' => null,
'rdoc' => null,
'metalremoval' => null,
'surface_finish' => null,
'cycle_time_ppart' => null,
'partsp_tool' => null,
'inches_machine_ptool' => null,
'cut_time_ptool' => null,
'brand_toolstyle' => null,
'brand_edp' => null,
'brand_lot_shank' => null,
'brand_lot_pkg' => null,
'brand_flutes_numb' => null,
'brand_cutting_diameter' => null,
'brand_length_of_cut' => null,
'brand_length_below_shank' => null,
'brand_tool_coating' => null,
'brand_corner_construction_type' => null,
'brand_corner_construction_size' => null,
'brand_shank_construction' => null,
'hsurfacefeet' => null,
'hrevolutionsperminute' => null,
'brand_fpt' => null,
'hipm' => null,
'hadoc' => null,
'hrdoc' => null,
'hmetalremoval' => null,
'brand_surface_finish' => null,
'brand_cycle_time_ppart' => null,
'brand_pptool' => null,
'brand_machined_ptool' => null,
'brand_ctime_ptool' => null,
];
$_POST = [
'useremail' => 'foo@bar.com',
'dangerous_fieldname' => 'I am administrator! hahaha!',
];
$values = array_intersect_key($_POST + $defaults, $defaults);
var_dump($values);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/IA0rQ
function name: (null)
number of ops: 14
compiled vars: !0 = $defaults, !1 = $values
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
95 1 FETCH_W global $3 '_POST'
2 ASSIGN $3, <array>
100 3 INIT_FCALL 'array_intersect_key'
4 FETCH_R global ~5 '_POST'
5 ADD ~6 ~5, !0
6 SEND_VAL ~6
7 SEND_VAR !0
8 DO_ICALL $7
9 ASSIGN !1, $7
102 10 INIT_FCALL 'var_dump'
11 SEND_VAR !1
12 DO_ICALL
13 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
164.6 ms | 1394 KiB | 17 Q