3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = ['a', 'b']; $o = (object)$a; var_dump($o); $b = (array)$o; var_dump($b); var_dump($b[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VIhtW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $o, !2 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        CAST                                              8  ~4      !0
          2        ASSIGN                                                       !1, ~4
    4     3        INIT_FCALL                                                   'var_dump'
          4        SEND_VAR                                                     !1
          5        DO_ICALL                                                     
    5     6        CAST                                              7  ~7      !1
          7        ASSIGN                                                       !2, ~7
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                                     
    7    11        INIT_FCALL                                                   'var_dump'
         12        FETCH_DIM_R                                          ~10     !2, 0
         13        SEND_VAL                                                     ~10
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
229.22 ms | 2391 KiB | 14 Q