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.0160.08112.52
5.4.280.0060.05812.41
5.4.270.0140.06812.41
5.4.260.0130.08212.41
5.4.250.0100.05812.41
5.4.240.0090.05612.41
5.4.230.0140.06212.40
5.4.220.0080.05012.41
5.4.210.0080.05912.40
5.4.200.0200.07212.41
5.4.190.0200.10512.40
5.4.180.0200.08412.40
5.4.170.0180.07012.41
5.4.160.0110.08512.41
5.4.150.0260.07412.40
5.4.140.0150.09312.08
5.4.130.0310.07912.07
5.4.120.0200.07512.04
5.4.110.0140.08312.03
5.4.100.0200.08512.02
5.4.90.0230.09212.03
5.4.80.0160.06912.03
5.4.70.0100.09012.02
5.4.60.0130.07212.02
5.4.50.0290.06512.02
5.4.40.0140.09012.01
5.4.30.0340.08912.01
5.4.20.0440.12112.00
5.4.10.0250.09512.01
5.4.00.0160.09311.50
5.3.280.0200.10812.70
5.3.270.0150.06712.73
5.3.260.0310.12212.72
5.3.250.0150.06412.72
5.3.240.0260.11612.72
5.3.230.0310.09612.71
5.3.220.0190.08912.68
5.3.210.0110.05412.68
5.3.200.0110.05312.68
5.3.190.0150.05112.68
5.3.180.0140.04412.67
5.3.170.0130.04912.67
5.3.160.0210.07012.67
5.3.150.0090.04912.67
5.3.140.0120.05012.66
5.3.130.0100.04512.66
5.3.120.0180.05812.66
5.3.110.0110.06112.66
5.3.100.0180.05312.13
5.3.90.0220.09712.11
5.3.80.0140.04812.10
5.3.70.0080.05712.10
5.3.60.0100.05712.08
5.3.50.0120.04812.03
5.3.40.0110.05312.03
5.3.30.0190.05011.99
5.3.20.0120.04811.77
5.3.10.0070.05211.73
5.3.00.0120.04911.72
5.2.170.0110.0449.23
5.2.160.0110.0489.22
5.2.150.0130.0419.23
5.2.140.0140.0449.22
5.2.130.0080.0459.18
5.2.120.0200.0429.19
5.2.110.0070.0509.19
5.2.100.0130.0439.18
5.2.90.0140.0449.18
5.2.80.0230.0799.18
5.2.70.0150.0479.18
5.2.60.0130.0499.14
5.2.50.0170.0449.11
5.2.40.0080.0469.08
5.2.30.0090.0549.05
5.2.20.0120.0479.05
5.2.10.0090.0528.95
5.2.00.0100.0558.82
5.1.60.0200.0548.09
5.1.50.0140.0578.10
5.1.40.0200.0508.07
5.1.30.0110.0518.43
5.1.20.0150.0718.45
5.1.10.0070.0428.17
5.1.00.0100.0428.17
5.0.50.0080.0306.64
5.0.40.0070.0336.52
5.0.30.0050.0536.32
5.0.20.0130.0576.29
5.0.10.0070.0506.27
5.0.00.0070.0496.26
4.4.90.0040.0284.78
4.4.80.0050.0284.76
4.4.70.0070.0254.75
4.4.60.0060.0434.75
4.4.50.0130.0294.77
4.4.40.0090.0444.71
4.4.30.0040.0304.76
4.4.20.0040.0234.85
4.4.10.0040.0254.85
4.4.00.0030.0354.76
4.3.110.0100.0614.67
4.3.100.0070.0264.66
4.3.90.0070.0314.63
4.3.80.0050.0514.59
4.3.70.0030.0304.63
4.3.60.0080.0244.63
4.3.50.0130.0334.63
4.3.40.0070.0554.54
4.3.30.0030.0263.31
4.3.20.0060.0263.28
4.3.10.0040.0263.25
4.3.00.0100.0277.56

preferences:
135.46 ms | 1386 KiB | 7 Q