3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = new \ArrayObject(array('a')); foreach( $arr as $item ); var_dump($arr->getArrayCopy() === array('a'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/cRLAq
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $item
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   NEW                                                  $2      'ArrayObject'
          1        SEND_VAL_EX                                                  <array>
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    3     4      > FE_RESET_R                                           $5      !0, ->7
          5    > > FE_FETCH_R                                                   $5, !1, ->7
          6    > > JMP                                                          ->5
          7    >   FE_FREE                                                      $5
    4     8        INIT_FCALL                                                   'var_dump'
          9        INIT_METHOD_CALL                                             !0, 'getArrayCopy'
         10        DO_FCALL                                          0  $6      
         11        IS_IDENTICAL                                         ~7      $6, <array>
         12        SEND_VAL                                                     ~7
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.57 ms | 2817 KiB | 14 Q