3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Facebook\Entities; class UUID {} abstract class Entity {} interface Friendable {} interface Likeable {} interface Postable {} class User extends Entity implements Friendable, Likeable, Postable { public function __construct($name, UUID $uuid){} public function like(Likebable $entity){} public function friend(User $user){} public function post(Post $post){} } $reflection = new \ReflectionClass(new User('Philip Brown', new UUID(1234)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LihRm
function name:  (null)
number of ops:  13
compiled vars:  !0 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'facebook%5Centities%5Cuser', 'facebook%5Centities%5Centity'
   16     1        NEW                                              $1      'ReflectionClass'
          2        NEW                                              $2      'Facebook%5CEntities%5CUser'
          3        SEND_VAL_EX                                              'Philip+Brown'
          4        NEW                                              $3      'Facebook%5CEntities%5CUUID'
          5        SEND_VAL_EX                                              1234
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $3
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $2
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $1
         12      > RETURN                                                   1

Class Facebook\Entities\UUID: [no user functions]
Class Facebook\Entities\Entity: [no user functions]
Class Facebook\Entities\Friendable: [no user functions]
Class Facebook\Entities\Likeable: [no user functions]
Class Facebook\Entities\Postable: [no user functions]
Class Facebook\Entities\User:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LihRm
function name:  __construct
number of ops:  3
compiled vars:  !0 = $name, !1 = $uuid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function __construct

Function like:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LihRm
function name:  like
number of ops:  2
compiled vars:  !0 = $entity
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function like

Function friend:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LihRm
function name:  friend
number of ops:  2
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function friend

Function post:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LihRm
function name:  post
number of ops:  2
compiled vars:  !0 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function post

End of class Facebook\Entities\User.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.9 ms | 1390 KiB | 13 Q