3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $count = 0; function test() { echo $this->count++; } function show() { echo $this->count; } } $t = new Test(); $t->test(); $t->show();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7t6Ii
function name:  (null)
number of ops:  8
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
   19     5        INIT_METHOD_CALL                                         !0, 'show'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7t6Ii
function name:  test
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   POST_INC_OBJ                                     ~0      'count'
          1        ECHO                                                     ~0
    9     2      > RETURN                                                   null

End of function test

Function show:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7t6Ii
function name:  show
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_OBJ_R                                      ~0      'count'
          1        ECHO                                                     ~0
   14     2      > RETURN                                                   null

End of function show

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
286.55 ms | 1393 KiB | 14 Q