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 ); } }

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)
5.4.290.0080.05212.51
5.4.280.0080.05112.41
5.4.270.0100.04712.41
5.4.260.0050.05112.41
5.4.250.0120.05112.41
5.4.240.0090.04912.41
5.4.230.0130.05612.40
5.4.220.0070.05112.40
5.4.210.0060.05112.40
5.4.200.0080.05312.40
5.4.190.0110.03412.40
5.4.180.0060.04012.40
5.4.170.0060.04212.41
5.4.160.0090.03912.40
5.4.150.0060.04112.40
5.4.140.0080.04012.09
5.4.130.0110.05812.07
5.4.120.0090.04212.03
5.4.110.0130.04612.03
5.4.100.0090.03512.03
5.4.90.0120.04612.03
5.4.80.0160.08012.03
5.4.70.0100.05312.03
5.4.60.0100.05212.02
5.4.50.0090.04812.02
5.4.40.0110.05312.01
5.4.30.0110.03912.01
5.4.20.0120.03412.00
5.4.10.0060.03612.01
5.4.00.0070.03911.51
5.3.280.0100.04112.71
5.3.270.0080.04212.72
5.3.260.0080.04012.72
5.3.250.0060.03812.72
5.3.240.0050.03812.72
5.3.230.0080.04912.71
5.3.220.0100.05212.68
5.3.210.0080.05512.68
5.3.200.0050.05612.68
5.3.190.0100.05112.68
5.3.180.0130.08012.68
5.3.170.0100.04312.67
5.3.160.0140.04012.67
5.3.150.0130.04612.67
5.3.140.0120.03912.66
5.3.130.0070.04112.66
5.3.120.0070.04812.66
5.3.110.0100.06312.66
5.3.100.0080.04112.13
5.3.90.0080.03912.11
5.3.80.0090.03812.11
5.3.70.0060.04212.11
5.3.60.0090.03612.09
5.3.50.0050.04512.03
5.3.40.0090.03612.03
5.3.30.0080.03511.99
5.3.20.0040.03911.78
5.3.10.0070.03611.74
5.3.00.0050.04011.73
5.2.170.0090.0279.23
5.2.160.0040.0339.23
5.2.150.0050.0319.23
5.2.140.0030.0349.22
5.2.130.0040.0319.19
5.2.120.0060.0429.18
5.2.110.0050.0339.19
5.2.100.0060.0289.19
5.2.90.0030.0329.19
5.2.80.0080.0329.18
5.2.70.0090.0309.18
5.2.60.0110.0399.14
5.2.50.0040.0349.11
5.2.40.0080.0359.09
5.2.30.0040.0359.05
5.2.20.0090.0309.05
5.2.10.0070.0318.95
5.2.00.0050.0328.81
5.1.60.0070.0258.09
5.1.50.0050.0288.09
5.1.40.0050.0298.07
5.1.30.0100.0248.43
5.1.20.0050.0308.45
5.1.10.0060.0288.17
5.1.00.0040.0308.18
5.0.50.0040.0246.66
5.0.40.0080.0196.51
5.0.30.0080.0306.32
5.0.20.0060.0246.29
5.0.10.0070.0296.28
5.0.00.0060.0426.26
4.4.90.0050.0204.78
4.4.80.0070.0224.75
4.4.70.0100.0314.75
4.4.60.0090.0304.75
4.4.50.0060.0204.77
4.4.40.0060.0744.71
4.4.30.0040.0214.76
4.4.20.0070.0264.84
4.4.10.0050.0274.84
4.4.00.0040.0384.76
4.3.110.0060.0234.67
4.3.100.0100.0184.67
4.3.90.0040.0154.64
4.3.80.0060.0264.59
4.3.70.0050.0224.63
4.3.60.0050.0274.62
4.3.50.0050.0234.63
4.3.40.0040.0344.54
4.3.30.0160.0903.31
4.3.20.0180.0283.29
4.3.10.0010.0233.25
4.3.00.0070.0207.56

preferences:
168.25 ms | 1394 KiB | 7 Q