3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.24 ms | 1397 KiB | 13 Q