3v4l.org

run code in 300+ PHP versions simultaneously
<?php function listing() { return array("foo", "bar"); } $array = listing(); $first = reset($array); var_dump($first); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/33D17
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $first
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'listing'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    6     3        INIT_FCALL                                               'reset'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    7     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    8    10      > RETURN                                                   1

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

End of function listing

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.66 ms | 1397 KiB | 18 Q