pub fn global_pop(name: &str) -> Result<bool, PhpError>
array_pop($GLOBALS[$name]), in place, as WordPress pops $wp_current_filter: one entry into PHP. False (nothing done) when the global is not an array.
array_pop($GLOBALS[$name])
$wp_current_filter