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: " . (string) $array_size(objectives_list);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n6otL
function name:  (null)
number of ops:  20
compiled vars:  !0 = $objectives_list_param, !1 = $objectives_list, !2 = $key, !3 = $array_size
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   20     1        ASSIGN                                                   !1, <array>
   37     2        INIT_FCALL                                               'array_search'
          3        SEND_VAL                                                 '023031040080'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
   38     7        TYPE_CHECK                                    4          !2
          8      > JMPZ                                                     ~8, ->11
   39     9    >   ECHO                                                     'Key+not+found'
         10      > JMP                                                      ->12
   41    11    >   ECHO                                                     !2
   44    12    >   INIT_DYNAMIC_CALL                                        !3
         13        FETCH_CONSTANT                                   ~9      'objectives_list'
         14        SEND_VAL_EX                                              ~9
         15        DO_FCALL                                      0  $10     
         16        CAST                                          6  ~11     $10
         17        CONCAT                                           ~12     '%3Cbr+%2F%3ELast+element+in+array+is%3A+', ~11
         18        ECHO                                                     ~12
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171 ms | 1395 KiB | 15 Q