3v4l.org

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

Class Static_:
Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/epbqR
function name:  count
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   PRE_INC_STATIC_PROP                                      'count'
   16     1        FETCH_STATIC_PROP_R          unknown             ~1      'count'
          2        ECHO                                                     ~1
   18     3      > RETURN                                                   null

End of function count

End of class Static_.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1393 KiB | 13 Q