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($keys == $keysDerived, $keys === $keysDerived); var_dump(in_array("28000000000000003", array_keys($data), 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 = 46, Position 2 = 67
Branch analysis from position: 46
2 jumps found. (Code = 78) Position 1 = 47, Position 2 = 67
Branch analysis from position: 47
2 jumps found. (Code = 77) Position 1 = 49, Position 2 = 65
Branch analysis from position: 49
2 jumps found. (Code = 78) Position 1 = 50, Position 2 = 65
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 57
Branch analysis from position: 52
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 64
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
Branch analysis from position: 64
Branch analysis from position: 57
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
Branch analysis from position: 65
Branch analysis from position: 67
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
filename:       /in/W3WR3
function name:  (null)
number of ops:  69
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        IS_EQUAL                                         ~10     !1, !2
          8        SEND_VAL                                                 ~10
          9        IS_IDENTICAL                                     ~11     !1, !2
         10        SEND_VAL                                                 ~11
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'in_array'
         14        SEND_VAL                                                 '28000000000000003'
         15        INIT_FCALL                                               'array_keys'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $13     
         18        SEND_VAR                                                 $13
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $14     
         21        SEND_VAR                                                 $14
         22        DO_ICALL                                                 
   11    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'in_array'
         25        SEND_VAL                                                 '28000000000000003'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                         $16     
         28        SEND_VAR                                                 $16
         29        DO_ICALL                                                 
   13    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'in_array'
         32        SEND_VAL                                                 '28000000000000003'
         33        SEND_VAR                                                 !1
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $18     
         36        SEND_VAR                                                 $18
         37        DO_ICALL                                                 
   15    38        INIT_FCALL                                               'var_dump'
         39        INIT_FCALL                                               'in_array'
         40        SEND_VAL                                                 '28000000000000003'
         41        SEND_VAR                                                 !1
         42        DO_ICALL                                         $20     
         43        SEND_VAR                                                 $20
         44        DO_ICALL                                                 
   17    45      > FE_RESET_R                                       $22     !0, ->67
         46    > > FE_FETCH_R                                       ~23     $22, !3, ->67
         47    >   ASSIGN                                                   !4, ~23
   18    48      > FE_RESET_R                                       $25     !1, ->65
         49    > > FE_FETCH_R                                               $25, !5, ->65
   19    50    >   IS_EQUAL                                                 !5, !4
         51      > JMPZ                                                     ~26, ->57
   20    52    >   INIT_FCALL                                               'var_dump'
         53        SEND_VAR                                                 !4
         54        SEND_VAL                                                 '%3D'
         55        SEND_VAR                                                 !5
         56        DO_ICALL                                                 
   22    57    >   IS_IDENTICAL                                             !5, !4
         58      > JMPZ                                                     ~28, ->64
   23    59    >   INIT_FCALL                                               'var_dump'
         60        SEND_VAR                                                 !4
         61        SEND_VAL                                                 '%3D%3D%3D'
         62        SEND_VAR                                                 !5
         63        DO_ICALL                                                 
   18    64    > > JMP                                                      ->49
         65    >   FE_FREE                                                  $25
   17    66      > JMP                                                      ->46
         67    >   FE_FREE                                                  $22
   26    68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.26 ms | 1392 KiB | 19 Q