3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __($dummy) {/*whatever*/} class MembershipForm { static function form() { return array( array( 'type' => 'textfield', 'heading' => __( 'License Type ID' ), 'param_name' => 'license_type', 'description' => esc_attr__( 'Enter License Type ID', 'wds-vc-elements' ), ), array( 'type' => 'dropdown', 'heading' => __( 'Card Type' ), 'param_name' => 'card_type', 'value' => array( 'Select a card type' => '', 'Appraisal' => 'Appraisal', 'Real Estate' => 'Real Estate', ), ), array( 'type' => 'dropdown', 'heading' => __( 'Education Type' ), 'param_name' => 'edu_type', 'value' => array( 'Select an education type' => '', 'Continuing Education' => 'CE', 'Qualifying Education' => 'QE', ), ), array( 'type' => 'dropdown', 'heading' => __( 'Visual Style' ), 'param_name' => 'visual_style', 'value' => array( 'Select a card visual style' => '', 'Minimalist' => 'minimalist-card', 'Modern' => 'modern-card', ), ), array( 'type' => 'checkbox', 'heading' => __( 'Overlapping the header?', 'wds-vc-elements' ), 'param_name' => 'header_overlap', ), array( 'type' => 'textfield', 'heading' => __( 'Cards Title', 'wds-vc-elements' ), 'param_name' => 'cards_title', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Cards Title Color', 'wds-vc-elements' ), 'param_name' => 'cards_title_color', ), array( 'type' => 'textfield', 'heading' => __( 'Cards Sub Heading', 'wds-vc-elements' ), 'param_name' => 'cards_sub_heading', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Cards Sub Heading Color', 'wds-vc-elements' ), 'param_name' => 'cards_subhead_color', ), array( 'type' => 'hex_color_picker', 'heading' => __( "<hr><h2 style='text-align:center;'>Dynamic Card Setting</h2>Cards Title Text Color" ), 'param_name' => 'card_color', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Cards Title Background Color', 'wds-vc-elements' ), 'param_name' => 'card_bgcolor', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Cards Background Color', 'wds-vc-elements' ), 'param_name' => 'card_bg', ), array( 'type' => 'textarea', 'heading' => __( 'Cards Description', 'wds-vc-elements' ), 'param_name' => 'cards_desc', ), array( 'type' => 'textfield', 'heading' => __( 'Price Tag Dynamic', 'wds-vc-elements' ), 'param_name' => 'price_tag_dynamic', ), array( 'type' => 'textfield', 'heading' => __( 'No membership option text', 'wds-vc-elements' ), 'param_name' => 'no_membership', ), array( 'type' => 'param_group', 'value' => '', 'param_name' => 'cards_group', 'group' => 'Dynamic Card items', 'params' => array( array( 'type' => 'textarea', 'heading' => __( 'Text to display for this offering (html tags are supported)', 'wds-vc-elements' ), 'param_name' => 'offering_text', ), ), ), array( 'type' => 'param_group', 'value' => '', 'param_name' => 'default_cards_group', 'group' => 'Static Cards (no state selected)', 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Card Title', 'wds-vc-elements' ), 'param_name' => 'card_title', ), array( 'type' => 'checkbox', 'heading' => __( 'Is Multi-State', 'wds-vc-elements' ), 'description' => esc_attr__( 'Check only if this membership applies to all states.', 'wds-vc-elements' ), 'param_name' => 'is_multi', ), array( 'type' => 'checkbox', 'heading' => __( 'Is Dual CTA', 'wds-vc-elements' ), 'description' => esc_attr__( 'The license type must contain two individual memberships as returned by StudentAPI.', 'wds-vc-elements' ), 'param_name' => 'is_dualcta', ), array( 'type' => 'checkbox', 'heading' => __( 'Has Static Header and Description', 'wds-vc-elements' ), 'description' => esc_attr__( 'Override the dynamic header and description with the static fields below.', 'wds-vc-elements' ), 'param_name' => 'is_static', ), array( 'type' => 'checkbox', 'heading' => __( 'Comparison Card', 'wds-vc-elements' ), 'description' => esc_attr__( 'Adds an informational card next to the purchase card.', 'wds-vc-elements' ), 'param_name' => 'is_comparison', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Card Title Color', 'wds-vc-elements' ), 'param_name' => 'card_title_color', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Card Title Background Color' ), 'param_name' => 'card_title_bg_color', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Card Section Background Color' ), 'param_name' => 'card_section_bg_color', ), array( oh my god a syntax error 'type' => 'textarea', 'heading' => __( 'Card Points Intro', 'wds-vc-elements' ), 'param_name' => 'card_points_intro', ), array( 'type' => 'textarea', 'heading' => __( 'Card Points (Use html list for each line)', 'wds-vc-elements' ), 'param_name' => 'card_points', ), array( 'type' => 'textfield', 'heading' => __( 'Card Savings Ribbon', 'wds-vc-elements' ), 'description' => esc_attr__( 'This savings ribbon appears at the top of the card.', 'wds-vc-elements' ), 'param_name' => 'card_savings_ribbon', ), array( 'type' => 'textfield', 'heading' => __( 'Card Price', 'wds-vc-elements' ), 'param_name' => 'card_price', ), array( 'type' => 'textfield', 'heading' => __( 'Card Price Suffix', 'wds-vc-elements' ), 'param_name' => 'card_price_suffix', ), array( 'type' => 'textfield', 'heading' => __( 'Card Price Savings Ribbon', 'wds-vc-elements' ), 'description' => esc_attr__( 'This savings ribbon appears at the top of the first year selector.', 'wds-vc-elements' ), 'param_name' => 'card_price_savings_ribbon', ), array( 'type' => 'textfield', 'heading' => __( 'Card Price (2nd year)', 'wds-vc-elements' ), 'param_name' => 'card_price_2', ), array( 'type' => 'textfield', 'heading' => __( 'Card Price Suffix (2nd year)', 'wds-vc-elements' ), 'param_name' => 'card_price_suffix_2', ), array( 'type' => 'textfield', 'heading' => __( 'Card Price Savings Ribbon (2nd year)', 'wds-vc-elements' ), 'description' => esc_attr__( 'This savings ribbon appears at the top of the second year selector.', 'wds-vc-elements' ), 'param_name' => 'card_price_savings_ribbon_2', ), array( 'type' => 'textfield', 'heading' => __( 'Price Tag Line', 'wds-vc-elements' ), 'param_name' => 'price_tag_line', ), array( 'type' => 'textfield', 'heading' => __( 'Price Tag Line (2nd year)', 'wds-vc-elements' ), 'param_name' => 'price_tag_line_2', ), array( 'type' => 'textfield', 'heading' => __( 'Button Title Select', 'wds-vc-elements' ), 'param_name' => 'button_title_select', ), array( 'type' => 'textfield', 'heading' => __( 'Button Title Checkout', 'wds-vc-elements' ), 'param_name' => 'button_title_checkout', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Button Title Color', 'wds-vc-elements' ), 'param_name' => 'button_title_color', ), array( 'type' => 'hex_color_picker', 'heading' => __( 'Button Background Color', 'wds-vc-elements' ), 'param_name' => 'button_bg_color', ), ), ), ); } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.50.0110.00616.59
7.4.40.0100.00716.23
7.4.30.0120.01216.19
7.4.20.0070.01016.55
7.4.10.0030.01316.26
7.4.00.0060.01016.49
7.3.170.0060.01016.20
7.3.160.0070.01016.27
7.3.150.0070.01016.43
7.3.140.0060.01016.17
7.3.130.0080.00816.06
7.3.120.0100.00716.27
7.3.110.0080.00816.18
7.3.100.0100.00616.16
7.3.90.0060.01216.27
7.3.80.0060.00916.31
7.3.70.0140.00616.23
7.3.60.0070.01116.21
7.3.50.0200.00316.08
7.3.40.0060.01616.08
7.3.30.0130.01016.13
7.3.20.0080.01216.32
7.3.10.0330.03116.24
7.3.00.0030.01316.20
7.2.290.0140.00316.45
7.2.280.0030.01316.43
7.2.270.0150.00316.55
7.2.260.0090.00916.30
7.2.250.0070.01016.30
7.2.240.0170.00016.26
7.2.230.0100.00616.21
7.2.220.0040.01416.57
7.2.210.0110.00816.18
7.2.200.0040.01416.38
7.2.190.0060.01216.36
7.2.180.0160.00616.37
7.2.170.0100.01016.58
7.2.160.0090.01216.24
7.2.150.0070.01616.29
7.2.140.0100.02016.38
7.2.130.0130.00716.43
7.2.120.0100.01016.57
7.2.110.0080.01216.23
7.2.100.0090.00916.39
7.2.90.0130.00616.32
7.2.80.0120.00616.37
7.2.70.0090.00916.14
7.2.60.0130.01216.31
7.2.50.0120.00616.34
7.2.40.0140.01416.45
7.2.30.0090.00916.29
7.2.20.0110.00616.39
7.2.10.0150.00316.18
7.2.00.0090.00916.48

preferences:
168.63 ms | 1394 KiB | 7 Q