3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Resource { } function test(Resource $resource) { } $r = new Resource(); test($resource);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/bKFPL
function name:  (null)
number of ops:  9
compiled vars:  !0 = $r, !1 = $resource
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   8     1        NOP                                                      
  13     2        NEW                                              $3      :-6
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !0, $3
  14     5        INIT_FCALL                                               'test'
         6        SEND_VAR                                                 !1
         7        DO_FCALL                                      0          
         8      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/bKFPL
function name:  test
number of ops:  2
compiled vars:  !0 = $resource
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   RECV                                             !0      
  11     1      > RETURN                                                   null

End of function test

Class Resource: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0