3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Plugin Name: Ninja Forms - Change From_Rev1 */ add_action( 'ninja_forms_email_admin', 'ninja_forms_change_from_address' ); function ninja_forms_change_from_address(){ global $ninja_forms_processing; if( 2 == $ninja_forms_processing->get_form_ID() ) { $user_email = $ninja_forms_processing->get_field_value( 10 ); $user_name = $ninja_forms_processing->get_field_value( 2 ); $user_email = $user_name." <".$user_email.">"; $ninja_forms_processing->update_form_setting( 'email_from', $user_email ); } add_action( 'ninja_forms_email_admin', 'ninja_forms_change_from_address' ); function ninja_forms_change_from_address(){ global $ninja_forms_processing; if( 1 == $ninja_forms_processing->get_form_ID() ) { $user_email = $ninja_forms_processing->get_field_value( 24 ); $user_name = $ninja_forms_processing->get_field_value( 1 ); $user_email = $user_name." <".$user_email.">"; $ninja_forms_processing->update_form_setting( 'email_from', $user_email ); } }
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected end of file in /in/m1a4X on line 25
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/m1a4X on line 25
Process exited with code 255.

preferences:
202.76 ms | 1395 KiB | 66 Q