3v4l.org

run code in 300+ PHP versions simultaneously
<?php $small_num = '9999'; $large_num = '9999999999999999999999999999999'; $obj = new stdClass; $obj->$small_num = true; $obj->$large_num = true; $arr = (array)$obj; var_dump(array( 'isset_small_num_key' => isset($arr[$small_num]), 'isset_large_num_key' => isset($arr[$large_num]), ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aqbtU
function name:  (null)
number of ops:  19
compiled vars:  !0 = $small_num, !1 = $large_num, !2 = $obj, !3 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '9999'
    4     1        ASSIGN                                                   !1, '9999999999999999999999999999999'
    6     2        NEW                                              $6      'stdClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $6
    7     5        ASSIGN_OBJ                                               !2, !0
          6        OP_DATA                                                  <true>
    8     7        ASSIGN_OBJ                                               !2, !1
          8        OP_DATA                                                  <true>
    9     9        CAST                                          7  ~11     !2
         10        ASSIGN                                                   !3, ~11
   11    11        INIT_FCALL                                               'var_dump'
   12    12        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !3, !0
         13        INIT_ARRAY                                       ~14     ~13, 'isset_small_num_key'
   13    14        ISSET_ISEMPTY_DIM_OBJ                         0  ~15     !3, !1
         15        ADD_ARRAY_ELEMENT                                ~14     ~15, 'isset_large_num_key'
         16        SEND_VAL                                                 ~14
         17        DO_ICALL                                                 
   14    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.24 ms | 1395 KiB | 15 Q