3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { // No.1 静的プロパティ public static $a = 8; // No.2 静的メソッド public static function sum($b,$c) { echo $b + $c; } // No.3 インスタンスプロパティ public $d = 9; // No.4 インスタンスメソッド public function count() { static $e = 0; echo $e; $e++; } // No.5 インスタンスメソッド public function division($f,$g) { echo $f / $g; } } // No.1 静的プロパティへアクセス echo Test::$a; // No.2 静的メソッドへアクセス Test::sum(2,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nrMTv
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'a'
          1        ECHO                                                     ~0
   34     2        INIT_STATIC_METHOD_CALL                                  'Test', 'sum'
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 3
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Test:
Function sum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nrMTv
function name:  sum
number of ops:  5
compiled vars:  !0 = $b, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ADD                                              ~2      !0, !1
          3        ECHO                                                     ~2
   11     4      > RETURN                                                   null

End of function sum

Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nrMTv
function name:  count
number of ops:  4
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   BIND_STATIC                                              !0
   19     1        ECHO                                                     !0
   20     2        PRE_INC                                                  !0
   21     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/nrMTv
function name:  division
number of ops:  5
compiled vars:  !0 = $f, !1 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   25     2        DIV                                              ~2      !0, !1
          3        ECHO                                                     ~2
   26     4      > RETURN                                                   null

End of function division

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.06 ms | 1395 KiB | 13 Q