3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = string(0,1,2,3,4,4); echo $s[1]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Uc1o
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'string'
          1        SEND_VAL_EX                                              0
          2        SEND_VAL_EX                                              1
          3        SEND_VAL_EX                                              2
          4        SEND_VAL_EX                                              3
          5        SEND_VAL_EX                                              4
          6        SEND_VAL_EX                                              4
          7        DO_FCALL                                      0  $1      
          8        ASSIGN                                                   !0, $1
    3     9        FETCH_DIM_R                                      ~3      !0, 1
         10        ECHO                                                     ~3
    4    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.06 ms | 1384 KiB | 13 Q