3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc{ public function getName(){ echo "My name is " , get_class($this) , "\n"; } } $obj = new abc(); $obj->getFirstName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s6VpA
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'abc'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_METHOD_CALL                                         !0, 'getFirstName'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class abc:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s6VpA
function name:  getName
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'My+name+is+'
          1        FETCH_THIS                                       ~0      
          2        GET_CLASS                                        ~1      ~0
          3        ECHO                                                     ~1
          4        ECHO                                                     '%0A'
    6     5      > RETURN                                                   null

End of function getname

End of class abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.22 ms | 1397 KiB | 13 Q