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( 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 ); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TsmL0
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL_BY_NAME                                       'add_action'
          1        SEND_VAL_EX                                              'ninja_forms_email_admin'
          2        SEND_VAL_EX                                              'ninja_forms_change_from_address'
          3        DO_FCALL                                      0          
   17     4      > RETURN                                                   1

Function ninja_forms_change_from_address:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/TsmL0
function name:  ninja_forms_change_from_address
number of ops:  22
compiled vars:  !0 = $ninja_forms_processing, !1 = $user_email, !2 = $user_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   BIND_GLOBAL                                              !0, 'ninja_forms_processing'
   11     1        INIT_METHOD_CALL                                         !0, 'get_form_ID'
          2        DO_FCALL                                      0  $3      
          3        IS_EQUAL                                                 $3, 1
          4      > JMPZ                                                     ~4, ->21
   12     5    >   INIT_METHOD_CALL                                         !0, 'get_field_value'
          6        SEND_VAL_EX                                              24
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !1, $5
   13     9        INIT_METHOD_CALL                                         !0, 'get_field_value'
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !2, $7
   14    13        CONCAT                                           ~9      !2, '+%3C'
         14        CONCAT                                           ~10     ~9, !1
         15        CONCAT                                           ~11     ~10, '%3E'
         16        ASSIGN                                                   !1, ~11
   15    17        INIT_METHOD_CALL                                         !0, 'update_form_setting'
         18        SEND_VAL_EX                                              'email_from'
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0          
   17    21    > > RETURN                                                   null

End of function ninja_forms_change_from_address

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.16 ms | 1395 KiB | 13 Q