3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Collections; interface Collection extends \Traversable { /** * @return bool */ function isEmpty(); /** * @param callable $map * @return Collection */ function map(callable $map); /** * @param callable $filter * @return Collection */ function filter(callable $filter); /** * @param int $n * @return Collection */ function limit($n); /** * @param $initialValue * @param callable $combine * @return mixed */ function reduce($initialValue, callable $combine); /** * @param int $n * @return Collection */ function skip($n); /** * @param int $start * @param int $count * @return Collection */ function slice($start, $count); /** * Note that if you attempt to use keys that are not valid as a PHP array key then you will get errors. * @return array */ function toArray(); /** * @return Collection containing the keys as the values */ function keys(); /** * @return Collection containing the values but ignores keys */ function values(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'collections%5Ccollection'
   75     1      > RETURN                                                   1

Class Collections\Collection:
Function isempty:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  isEmpty
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   null

End of function isempty

Function map:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  map
number of ops:  2
compiled vars:  !0 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function map

Function filter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  filter
number of ops:  2
compiled vars:  !0 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function filter

Function limit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  limit
number of ops:  2
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function limit

Function reduce:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  reduce
number of ops:  3
compiled vars:  !0 = $initialValue, !1 = $combine
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   39     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function reduce

Function skip:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  skip
number of ops:  2
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function skip

Function slice:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gam5K
function name:  slice
number of ops:  3
compiled vars:  !0 = $start, !1 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   54     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function slice

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

End of function toarray

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

End of function keys

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

End of function values

End of class Collections\Collection.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.75 ms | 1399 KiB | 13 Q