3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { // No.4 インスタンスメソッド public function count() { static $e = 0; echo $e; $e++; } // No.5 インスタンスメソッド public function division($f,$g) { echo $f / $g; } } // No.4 インスタンスメソッドへアクセス Test::count(); // No.5 インスタンスメソッドへアクセス Test::division(4,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u1lEa
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E >   INIT_STATIC_METHOD_CALL                                      'Test', 'count'
          1        DO_FCALL                                          0          
   23     2        INIT_STATIC_METHOD_CALL                                      'Test', 'division'
          3        SEND_VAL                                                     4
          4        SEND_VAL                                                     2
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class Test:
Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u1lEa
function name:  count
number of ops:  4
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   BIND_STATIC                                                  !0
    8     1        ECHO                                                         !0
    9     2        PRE_INC                                                      !0
   10     3      > RETURN                                                       null

End of function count

Function division:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u1lEa
function name:  division
number of ops:  5
compiled vars:  !0 = $f, !1 = $g
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   14     2        DIV                                                  ~2      !0, !1
          3        ECHO                                                         ~2
   15     4      > RETURN                                                       null

End of function division

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.26 ms | 2998 KiB | 13 Q