3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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/ci5gt
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'collection'
   73     1      > RETURN                                                   1

Class Collection:
Function isempty:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ci5gt
function name:  isEmpty
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     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/ci5gt
function name:  map
number of ops:  2
compiled vars:  !0 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     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/ci5gt
function name:  filter
number of ops:  2
compiled vars:  !0 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     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/ci5gt
function name:  limit
number of ops:  2
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     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/ci5gt
function name:  reduce
number of ops:  3
compiled vars:  !0 = $initialValue, !1 = $combine
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     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/ci5gt
function name:  skip
number of ops:  2
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   44     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/ci5gt
function name:  slice
number of ops:  3
compiled vars:  !0 = $start, !1 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   52     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/ci5gt
function name:  toArray
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   59     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/ci5gt
function name:  keys
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     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/ci5gt
function name:  values
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   71     0  E > > RETURN                                                   null

End of function values

End of class Collection.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.19 ms | 1399 KiB | 13 Q