3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test() { return array('a', 'b', 'c'); } var_dump( reset(test()), array_shift(test()) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CZi6i
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'var_dump'
    9     1        INIT_FCALL                                                   'reset'
          2        INIT_FCALL                                                   'test'
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR_NO_REF                                   0          $0
          5        DO_ICALL                                             $1      
          6        SEND_VAR                                                     $1
   10     7        INIT_FCALL                                                   'array_shift'
          8        INIT_FCALL                                                   'test'
          9        DO_FCALL                                          0  $2      
         10        SEND_VAR_NO_REF                                   0          $2
         11        DO_ICALL                                             $3      
         12        SEND_VAR                                                     $3
    8    13        DO_ICALL                                                     
   11    14      > RETURN                                                       1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CZi6i
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       <array>
    6     1*     > RETURN                                                       null

End of function test

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.62 ms | 2869 KiB | 18 Q