3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
34.55 ms | 402 KiB | 5 Q