3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_arary = array('foo','bar'); echo $firstClient = $my_arary[0]; echo $firstClientId = $firstClient->clientId;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c5mfa
function name:  (null)
number of ops:  8
compiled vars:  !0 = $my_arary, !1 = $firstClient, !2 = $firstClientId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~4      !0, 0
          2        ASSIGN                                           ~5      !1, ~4
          3        ECHO                                                     ~5
    4     4        FETCH_OBJ_R                                      ~6      !1, 'clientId'
          5        ASSIGN                                           ~7      !2, ~6
          6        ECHO                                                     ~7
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.56 ms | 1392 KiB | 13 Q