3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ao = new ArrayObject(array('a' => 'bapple')); var_dump($ao['banana'], $ao->offsetGet('banana'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UIXDE
function name:  (null)
number of ops:  13
compiled vars:  !0 = $ao
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ArrayObject'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'var_dump'
          5        FETCH_DIM_R                                      ~4      !0, 'banana'
          6        SEND_VAL                                                 ~4
          7        INIT_METHOD_CALL                                         !0, 'offsetGet'
          8        SEND_VAL_EX                                              'banana'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.98 ms | 1385 KiB | 15 Q