3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 12345; $email = "somto@gmail.com"; $keyArr = array(12345 => array("somto@gmail.com", "james@yahoo.com",), 54321 => array("munz@gmail.com",)); $errors = []; if (!array_key_exists($key, $keyArr) || !in_array($email, $keyArr[$key])) { $errors['key'] = "Invalid email or key!"; } var_dump($errors);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 14
filename:       /in/QtTe0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $key, !1 = $email, !2 = $keyArr, !3 = $errors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 12345
    4     1        ASSIGN                                                   !1, 'somto%40gmail.com'
    6     2        ASSIGN                                                   !2, <array>
    8     3        ASSIGN                                                   !3, <array>
    9     4        ARRAY_KEY_EXISTS                                 ~8      !0, !2
          5        BOOL_NOT                                         ~9      ~8
          6      > JMPNZ_EX                                         ~9      ~9, ->14
          7    >   INIT_FCALL                                               'in_array'
          8        SEND_VAR                                                 !1
          9        FETCH_DIM_R                                      ~10     !2, !0
         10        SEND_VAL                                                 ~10
         11        DO_ICALL                                         $11     
         12        BOOL_NOT                                         ~12     $11
         13        BOOL                                             ~9      ~12
         14    > > JMPZ                                                     ~9, ->17
   10    15    >   ASSIGN_DIM                                               !3, 'key'
         16        OP_DATA                                                  'Invalid+email+or+key%21'
   13    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.73 ms | 1395 KiB | 17 Q