3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HiddenUser { } class User { } class Foo { public function bar(User $u) {} } $foo = new Foo(); $user = new User(); $user = new HiddenUser(); $foo->bar($user);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8HJQp
function name:  (null)
number of ops:  13
compiled vars:  !0 = $foo, !1 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        NEW                                              $5      'User'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   15     6        NEW                                              $8      'HiddenUser'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $8
   16     9        INIT_METHOD_CALL                                         !0, 'bar'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class HiddenUser: [no user functions]
Class User: [no user functions]
Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8HJQp
function name:  bar
number of ops:  2
compiled vars:  !0 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.54 ms | 1394 KiB | 13 Q