3v4l.org

run code in 500+ PHP versions simultaneously
<?php class RecursiveFixedArray extends SplFixedArray implements RecursiveIterator { public function getChildren(): ?RecursiveIterator { return $this->current(); } public function hasChildren(): bool { return $this->current() instanceof RecursiveFixedArray; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ufapQ
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                                'recursivefixedarray', 'splfixedarray'
   13     1      > RETURN                                                       1

Class RecursiveFixedArray:
Function getchildren:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ufapQ
function name:  getChildren
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_METHOD_CALL                                             'current'
          1        DO_FCALL                                          0  $0      
          2        VERIFY_RETURN_TYPE                                           $0
          3      > RETURN                                                       $0
    7     4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of function getchildren

Function haschildren:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ufapQ
function name:  hasChildren
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                             'current'
          1        DO_FCALL                                          0  $0      
          2        INSTANCEOF                                           ~1      $0, 'RecursiveFixedArray'
          3        VERIFY_RETURN_TYPE                                           ~1
          4      > RETURN                                                       ~1
   12     5*       VERIFY_RETURN_TYPE                                           
          6*     > RETURN                                                       null

End of function haschildren

End of class RecursiveFixedArray.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.21 ms | 475 KiB | 7 Q