3v4l.org

run code in 300+ PHP versions simultaneously
<?php $objectives_list_param = Array ( 'J_ID.1' => '02031040080', 'J_Name.1' => 'Review the operation and function of the spoiler system', 'J_Score.1' => '42', 'J_Status.1' => 'F', 'J_ID.2' => '02031040060', 'J_Name.2' => 'Review the operation and function of the primary flight control system', 'J_Score.2' => '95', 'J_Status.2' => 'P', 'J_ID.3' => '03001050010', 'J_Name.3' => 'Identify and determine the oxygen system usage requirements', 'J_Score.3' => '67', 'J_Status.3' => 'F' ); $objectives_list = Array ( 'J_ID.1' => '02031040060', 'J_Name.1' => 'Review the operation and function of the primary flight control system', 'J_Score.1' => '', 'J_Status.1' => 'C', 'J_ID.2' => '02031040070', 'J_Name.2' => 'Review the operation and function of the flap and slat system', 'J_Score.2' => '', 'J_Status.2' => 'I', 'J_ID.3' => '02031040080', 'J_Name.3' => 'Review the operation and function of the spoiler system', 'J_Score.3' => '', 'J_Status.3' => 'N' ); $key = array_search('023031040080', $objectives_list); if($key === false){ echo 'Key not found'; }else{ echo $key; }
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Key not found

preferences:
225.78 ms | 404 KiB | 369 Q