3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); wp_update_user(array( 'ID' => get_current_user_id(), 'description' => $_POST['description'] )); if (is_wp_error($user_id)) { // There was an error, probably that user doesn't exist. return 'Uh oh. There was an error changing your bio!'; } else { // Success! return $_POST['description']; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WPsju
function name:  (null)
number of ops:  22
compiled vars:  !0 = $user_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL_BY_NAME                                       'wp_update_user'
    6     4        INIT_FCALL_BY_NAME                                       'get_current_user_id'
          5        DO_FCALL                                      0  $2      
          6        INIT_ARRAY                                       ~3      $2, 'ID'
    7     7        FETCH_R                      global              ~4      '_POST'
          8        FETCH_DIM_R                                      ~5      ~4, 'description'
          9        ADD_ARRAY_ELEMENT                                ~3      ~5, 'description'
         10        SEND_VAL_EX                                              ~3
         11        DO_FCALL                                      0          
   10    12        INIT_FCALL_BY_NAME                                       'is_wp_error'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $7      
         15      > JMPZ                                                     $7, ->18
   12    16    > > RETURN                                                   'Uh+oh.+There+was+an+error+changing+your+bio%21'
         17*       JMP                                                      ->21
   15    18    >   FETCH_R                      global              ~8      '_POST'
         19        FETCH_DIM_R                                      ~9      ~8, 'description'
         20      > RETURN                                                   ~9
   16    21*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.8 ms | 1395 KiB | 15 Q