3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Panda { public function bitch() { return $this.get_class(); } public function __toString() { return 'test'; } } $charlimong = new Panda; var_dump($charlimong->bitch());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hgpGU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $charlimong
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'panda'
   13     1        NEW                                              $1      'Panda'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'bitch'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function bitch

Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hgpGU
function name:  __toString
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   'test'
   11     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function __tostring

End of class Panda.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.16 ms | 1395 KiB | 15 Q