3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.68 ms | 1394 KiB | 15 Q