3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['aa' => 4, 'cc' => 6.8]; $b = ['cc' => 6, 'aa' => 4.9]; //var_dump(array_keys($c) == array_keys($b)); $array_1_types = []; foreach($a as $value) { $array_1_types[] = gettype($value); } $array_2_types = []; foreach($b as $value) { $array_2_types[] = gettype($value); } $result = $array_1_types === $array_2_types; var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/HIDgp
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $array_1_types, !3 = $value, !4 = $array_2_types, !5 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
   11     2        ASSIGN                                                   !2, <array>
   12     3      > FE_RESET_R                                       $9      !0, ->9
          4    > > FE_FETCH_R                                               $9, !3, ->9
   13     5    >   GET_TYPE                                         ~11     !3
          6        ASSIGN_DIM                                               !2
          7        OP_DATA                                                  ~11
   12     8      > JMP                                                      ->4
          9    >   FE_FREE                                                  $9
   16    10        ASSIGN                                                   !4, <array>
   17    11      > FE_RESET_R                                       $13     !1, ->17
         12    > > FE_FETCH_R                                               $13, !3, ->17
   18    13    >   GET_TYPE                                         ~15     !3
         14        ASSIGN_DIM                                               !4
         15        OP_DATA                                                  ~15
   17    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $13
   21    18        IS_IDENTICAL                                     ~16     !2, !4
         19        ASSIGN                                                   !5, ~16
   26    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.16 ms | 1396 KiB | 15 Q