3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** @param \SplFileInfo $object The object (not referenced). */ function testOk($object) { $object->getATime (); // Content Assist works } /** * * @param * \SplFileInfo &$object The object (referenced, notice the &). * */ function testOk2(&$object) { $object->getATime (); // Content Assist does not work } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DHH9d
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   1

Function testok:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DHH9d
function name:  testOk
number of ops:  4
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_METHOD_CALL                                         !0, 'getATime'
          2        DO_FCALL                                      0          
    8     3      > RETURN                                                   null

End of function testok

Function testok2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DHH9d
function name:  testOk2
number of ops:  4
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        INIT_METHOD_CALL                                         !0, 'getATime'
          2        DO_FCALL                                      0          
   17     3      > RETURN                                                   null

End of function testok2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1393 KiB | 13 Q