3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[9999999999999999999999] = 'a'; $a['9999999999999999999999'] = 'b'; print_r($a); foreach ($a as $x => $y) { echo gettype($x); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/WHgLN
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $y, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 1.0e+22
          2        OP_DATA                                                  'a'
    5     3        ASSIGN_DIM                                               !0, '9999999999999999999999'
          4        OP_DATA                                                  'b'
    6     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8      > FE_RESET_R                                       $7      !0, ->14
          9    > > FE_FETCH_R                                       ~8      $7, !1, ->14
         10    >   ASSIGN                                                   !2, ~8
    9    11        GET_TYPE                                         ~10     !2
         12        ECHO                                                     ~10
    8    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $7
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.13 ms | 1395 KiB | 15 Q