3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = new SplFixedArray(5); $array[0] = 1; $array[1] = 1; $array[2] = 1; $array[3] = 1; $array[4] = 1; $array->setSize(2); var_dump($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XunVA
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SplFixedArray'
          1        SEND_VAL_EX                                              5
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        ASSIGN_DIM                                               !0, 0
          5        OP_DATA                                                  1
    4     6        ASSIGN_DIM                                               !0, 1
          7        OP_DATA                                                  1
    5     8        ASSIGN_DIM                                               !0, 2
          9        OP_DATA                                                  1
    6    10        ASSIGN_DIM                                               !0, 3
         11        OP_DATA                                                  1
    7    12        ASSIGN_DIM                                               !0, 4
         13        OP_DATA                                                  1
    8    14        INIT_METHOD_CALL                                         !0, 'setSize'
         15        SEND_VAL_EX                                              2
         16        DO_FCALL                                      0          
    9    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   10    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.5 ms | 1395 KiB | 15 Q