3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.99 ms | 1395 KiB | 15 Q