3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Woman { public function __tostring() { return gettype($this); } } $woman = new Woman(); echo $woman;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DHosZ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $woman
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'woman'
   10     1        NEW                                              $1      'Woman'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   12     4        ECHO                                                     !0
          5      > RETURN                                                   1

Class Woman:
Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DHosZ
function name:  __tostring
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_THIS                                       ~0      
          1        GET_TYPE                                         ~1      ~0
          2        VERIFY_RETURN_TYPE                                       ~1
          3      > RETURN                                                   ~1
    7     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function __tostring

End of class Woman.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1393 KiB | 13 Q