3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace XYZ\Model; interface user{ public function getName() : string; } class myUser implements user { public function getName() : string { return 'Mark'; } } $x = new myUser(); echo $x->getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pep1l
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'xyz%5Cmodel%5Cmyuser'
   16     1        NEW                                              $1      'XYZ%5CModel%5CmyUser'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   17     4        INIT_METHOD_CALL                                         !0, 'getName'
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Class XYZ\Model\user:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pep1l
function name:  getName
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   VERIFY_RETURN_TYPE                                       
          1      > RETURN                                                   null

End of function getname

End of class XYZ\Model\user.

Class XYZ\Model\myUser:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pep1l
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   'Mark'
   13     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function getname

End of class XYZ\Model\myUser.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.15 ms | 1448 KiB | 13 Q