3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tags = array('exclude' => 46,5,101,22,122,7,102,15,104,47,105,66,43,123, 'fields' => ids); $tagString = implode (',' , $tags); $args = array( 'post_type' => 'post', 'posts_per_page' => 12, 'paged' => $paged, 'tag__in' => array (46, 5, 101, 22, 122, 7, 102, 15, 104, 47, 105, 66, 43, 123), 'tag__not_in' => array ($tagString) ); print_r($args);
Output for 5.0.4 - 7.1.0
Notice: Use of undefined constant ids - assumed 'ids' in /in/IeCaM on line 2 Notice: Undefined variable: paged in /in/IeCaM on line 8 Array ( [post_type] => post [posts_per_page] => 12 [paged] => [tag__in] => Array ( [0] => 46 [1] => 5 [2] => 101 [3] => 22 [4] => 122 [5] => 7 [6] => 102 [7] => 15 [8] => 104 [9] => 47 [10] => 105 [11] => 66 [12] => 43 [13] => 123 ) [tag__not_in] => Array ( [0] => 46,5,101,22,122,7,102,15,104,47,105,66,43,123,ids ) )
Output for 4.3.0 - 5.0.3
Notice: Use of undefined constant ids - assumed 'ids' in /in/IeCaM on line 2 Notice: Undefined variable: paged in /in/IeCaM on line 8 Array ( [post_type] => post [posts_per_page] => 12 [paged] => [tag__in] => Array ( [0] => 46 [1] => 5 [2] => 101 [3] => 22 [4] => 122 [5] => 7 [6] => 102 [7] => 15 [8] => 104 [9] => 47 [10] => 105 [11] => 66 [12] => 43 [13] => 123 ) [tag__not_in] => Array ( [0] => 46,5,101,22,122,7,102,15,104,47,105,66,43,123,ids ) )