3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array("28000000000000003" => 'ABC',"28000000000000001" => 'PQR'); $keys = array("28000000000000003","28000000000000001"); $keysDerived = array_keys($data); var_dump(in_array("28000000000000003", $keysDerived, true)); var_dump(in_array("28000000000000003", $keysDerived)); var_dump(in_array("28000000000000003", $keys, true)); var_dump(in_array("28000000000000003", $keys)); foreach ( $data as $k => $d ) { foreach ( $keys as $key ) { if ($key == $k) { var_dump($k, "=", $key); } if ($key === $k) { var_dump($k, "===", $key); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 37, Position 2 = 58
Branch analysis from position: 37
2 jumps found. (Code = 78) Position 1 = 38, Position 2 = 58
Branch analysis from position: 38
2 jumps found. (Code = 77) Position 1 = 40, Position 2 = 56
Branch analysis from position: 40
2 jumps found. (Code = 78) Position 1 = 41, Position 2 = 56
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 48
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 55
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 55
Branch analysis from position: 48
Branch analysis from position: 56
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 56
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
filename:       /in/MJ7sX
function name:  (null)
number of ops:  60
compiled vars:  !0 = $data, !1 = $keys, !2 = $keysDerived, !3 = $d, !4 = $k, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !2, $8
    7     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'in_array'
          8        SEND_VAL                                                 '28000000000000003'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $10     
         12        SEND_VAR                                                 $10
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'in_array'
         16        SEND_VAL                                                 '28000000000000003'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'in_array'
         23        SEND_VAL                                                 '28000000000000003'
         24        SEND_VAR                                                 !1
         25        SEND_VAL                                                 <true>
         26        DO_ICALL                                         $14     
         27        SEND_VAR                                                 $14
         28        DO_ICALL                                                 
   13    29        INIT_FCALL                                               'var_dump'
         30        INIT_FCALL                                               'in_array'
         31        SEND_VAL                                                 '28000000000000003'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                         $16     
         34        SEND_VAR                                                 $16
         35        DO_ICALL                                                 
   15    36      > FE_RESET_R                                       $18     !0, ->58
         37    > > FE_FETCH_R                                       ~19     $18, !3, ->58
         38    >   ASSIGN                                                   !4, ~19
   16    39      > FE_RESET_R                                       $21     !1, ->56
         40    > > FE_FETCH_R                                               $21, !5, ->56
   17    41    >   IS_EQUAL                                                 !5, !4
         42      > JMPZ                                                     ~22, ->48
   18    43    >   INIT_FCALL                                               'var_dump'
         44        SEND_VAR                                                 !4
         45        SEND_VAL                                                 '%3D'
         46        SEND_VAR                                                 !5
         47        DO_ICALL                                                 
   20    48    >   IS_IDENTICAL                                             !5, !4
         49      > JMPZ                                                     ~24, ->55
   21    50    >   INIT_FCALL                                               'var_dump'
         51        SEND_VAR                                                 !4
         52        SEND_VAL                                                 '%3D%3D%3D'
         53        SEND_VAR                                                 !5
         54        DO_ICALL                                                 
   16    55    > > JMP                                                      ->40
         56    >   FE_FREE                                                  $21
   15    57      > JMP                                                      ->37
         58    >   FE_FREE                                                  $18
   24    59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.61 ms | 1405 KiB | 19 Q