3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Static_ { public static $count = 0; public static function stat() { echo "static"; } public function count() { self::$count++; echo self::$count; self::stat(); } } (new Static())->count();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gA5Os
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   NEW                          static              $0      
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'count'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class Static_:
Function stat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gA5Os
function name:  stat
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'static'
   15     1      > RETURN                                                   null

End of function stat

Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gA5Os
function name:  count
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   PRE_INC_STATIC_PROP                                      'count'
   24     1        FETCH_STATIC_PROP_R          unknown             ~1      'count'
          2        ECHO                                                     ~1
   26     3        INIT_STATIC_METHOD_CALL                                  'stat'
          4        DO_FCALL                                      0          
   28     5      > RETURN                                                   null

End of function count

End of class Static_.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.54 ms | 1385 KiB | 13 Q