3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.38 ms | 1009 KiB | 14 Q