3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a["100"] = true; $keys = array_keys($a); var_dump( is_string($keys[0]) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lRVuV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 100
          2        OP_DATA                                                  <true>
    4     3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'var_dump'
          8        FETCH_DIM_R                                      ~6      !1, 0
          9        TYPE_CHECK                                   64  ~7      ~6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.95 ms | 1394 KiB | 17 Q