3v4l.org

run code in 300+ PHP versions simultaneously
<?php $large_num = '9999'; $small_num = '9999999999999999999999999999999'; $arr = (array)json_decode("{\"$small_num\":\"1\",\"$large_num\":\"1\"}"); var_dump($arr); 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/fh3SR
function name:  (null)
number of ops:  23
compiled vars:  !0 = $large_num, !1 = $small_num, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '9999'
    4     1        ASSIGN                                                   !1, '9999999999999999999999999999999'
    6     2        INIT_FCALL                                               'json_decode'
          3        ROPE_INIT                                     5  ~6      '%7B%22'
          4        ROPE_ADD                                      1  ~6      ~6, !1
          5        ROPE_ADD                                      2  ~6      ~6, '%22%3A%221%22%2C%22'
          6        ROPE_ADD                                      3  ~6      ~6, !0
          7        ROPE_END                                      4  ~5      ~6, '%22%3A%221%22%7D'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $9      
         10        CAST                                          7  ~10     $9
         11        ASSIGN                                                   !2, ~10
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
   11    16        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !2, !1
         17        INIT_ARRAY                                       ~14     ~13, 'isset_small_num_key'
   12    18        ISSET_ISEMPTY_DIM_OBJ                         0  ~15     !2, !0
         19        ADD_ARRAY_ELEMENT                                ~14     ~15, 'isset_large_num_key'
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
   13    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.94 ms | 1395 KiB | 17 Q