3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $objQueryConditions = array( "columns" => array ( [0] => user_id ), "where" => array ( ), "order_by" => array ( ), "limit" => array ( 0 => 0, 1 => 100 ), ); if (!array_key_exists("columns", $objQueryConditions) || !array_key_exists("where", $objQueryConditions) || !array_key_exists("order by", $objQueryConditions) || !array_key_exists("limit", $objQueryConditions) ) echo "yes";
Output for 7.2.0
Warning: Use of undefined constant user_id - assumed 'user_id' (this will throw an Error in a future version of PHP) in /in/n2NnZ on line 6 Warning: Illegal offset type in /in/n2NnZ on line 6 yes
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant user_id - assumed 'user_id' in /in/n2NnZ on line 6 Warning: Illegal offset type in /in/n2NnZ on line 6 yes
Output for 5.4.7 - 5.6.28
Notice: Use of undefined constant user_id - assumed 'user_id' in /in/n2NnZ on line 7 Warning: Illegal offset type in /in/n2NnZ on line 7 yes
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/n2NnZ on line 6
Process exited with code 255.