3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('foo' => array('bar')); var_dump(reset(reset($array))); $aResult = reset($array); var_dump(reset($aResult));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tDqYZ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $aResult
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'reset'
          3        INIT_FCALL                                               'reset'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR_NO_REF                               0          $3
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'reset'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
    5    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'reset'
         16        SEND_REF                                                 !1
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.24 ms | 1395 KiB | 17 Q