3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function a_function() { return 'A Fnction'; } function a1_function() { return 'A Fnction'; } } $a = new a(); echo $a->a_function();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FD1t2
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'a_function'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

Class a:
Function a_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FD1t2
function name:  a_function
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'A+Fnction'
    8     1*     > RETURN                                                   null

End of function a_function

Function a1_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FD1t2
function name:  a1_function
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   'A+Fnction'
   12     1*     > RETURN                                                   null

End of function a1_function

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.84 ms | 1385 KiB | 13 Q