3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $new_post = array( 'post_title' => $post_title, 'post_content' => $post_content, 'post_status' => 'pending', 'post_author' => $user_ID, 'post_type' => 'post', 'tags_input' => $keywords, 'post_category' => array('3'), //'tax_input' => array( 'helpful-articles' => $term_id ) //'tax_input' => 'helpful-articles', //'post_category' => array(0) ); ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: post_title in /in/boUcg on line 2 Notice: Undefined variable: post_content in /in/boUcg on line 3 Notice: Undefined variable: user_ID in /in/boUcg on line 6 Notice: Undefined variable: keywords in /in/boUcg on line 8
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: post_title in /in/boUcg on line 16 Notice: Undefined variable: post_content in /in/boUcg on line 16 Notice: Undefined variable: user_ID in /in/boUcg on line 16 Notice: Undefined variable: keywords in /in/boUcg on line 16
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: post_title in /in/boUcg on line 2 Notice: Undefined variable: post_content in /in/boUcg on line 3 Notice: Undefined variable: user_ID in /in/boUcg on line 6 Notice: Undefined variable: keywords in /in/boUcg on line 8