3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Undefined constant "user_id" in /in/n2NnZ:6 Stack trace: #0 {main} thrown in /in/n2NnZ on line 6
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.0.31, 7.1.0 - 7.1.25
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.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
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

preferences:
227.82 ms | 402 KiB | 337 Q