3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152 ms | 1394 KiB | 15 Q