3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public static function say() { echo "Here are my thoughts!"; } } class Blogger extends Person { const cats = 50; } echo Blogger::cats; Blogger::say(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iCsdi
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     50
   11     1        INIT_STATIC_METHOD_CALL                                  'Blogger', 'say'
          2        DO_FCALL                                      0          
   12     3      > RETURN                                                   1

Class Person:
Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iCsdi
function name:  say
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Here+are+my+thoughts%21'
    5     1      > RETURN                                                   null

End of function say

End of class Person.

Class Blogger:
Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iCsdi
function name:  say
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Here+are+my+thoughts%21'
    5     1      > RETURN                                                   null

End of function say

End of class Blogger.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.7 ms | 1393 KiB | 13 Q