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; } echo "<br />Last element in array is: " . $array_size(objectives_list);
Output for git.master, git.master_jit, rfc.property-hooks
Key not found Warning: Undefined variable $array_size in /in/PW0uk on line 44 Fatal error: Uncaught Error: Value of type null is not callable in /in/PW0uk:44 Stack trace: #0 {main} thrown in /in/PW0uk on line 44
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.33 ms | 401 KiB | 8 Q