3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); /** * Trashes or deletes a post or page. * * When the post and page is permanently deleted, everything that is tied to * it is deleted also. This includes comments, post meta fields, and terms * associated with the post. * * The post or page is moved to Trash instead of permanently deleted unless * Trash is disabled, item is already in the Trash, or $force_delete is true. * * @since 1.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * @see wp_delete_attachment() * @see wp_trash_post() * * @param int $post_id Optional. Post ID. Default 0. * @param bool $force_delete Optional. Whether to bypass Trash and force deletion. * Default false. * @return WP_Post|false|null Post data on success, false or null on failure. */ function wp_delete_post( $post_id = 0, $force_delete = false ) { echo '$post_id === '; var_dump( $post_id ); } wp_delete_post( '123' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0L4Ru
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   INIT_FCALL                                               'wp_delete_post'
          1        SEND_VAL                                                 '123'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function wp_delete_post:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0L4Ru
function name:  wp_delete_post
number of ops:  7
compiled vars:  !0 = $post_id, !1 = $force_delete
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV_INIT                                        !0      0
          1        RECV_INIT                                        !1      <false>
   26     2        ECHO                                                     '%24post_id+%3D%3D%3D+'
   27     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   28     6      > RETURN                                                   null

End of function wp_delete_post

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.29 ms | 1003 KiB | 15 Q