3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $a = 'franz'; public function setA($v) { self::$a = $v; } } $a = new A; echo $a::$a; $a->setA('cheryl'); $a = new A; echo $a::$a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/okHuI
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        FETCH_CLASS                                   0  $4      !0
          4        FETCH_STATIC_PROP_R          global lock         ~5      'a'
          5        ECHO                                                     ~5
   17     6        INIT_METHOD_CALL                                         !0, 'setA'
          7        SEND_VAL_EX                                              'cheryl'
          8        DO_FCALL                                      0          
   19     9        NEW                                              $7      'A'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $7
   20    12        FETCH_CLASS                                   0  $10     !0
         13        FETCH_STATIC_PROP_R          unknown             ~11     'a'
         14        ECHO                                                     ~11
         15      > RETURN                                                   1

Class A:
Function seta:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/okHuI
function name:  setA
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_STATIC_PROP                                       'a'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function seta

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.75 ms | 1394 KiB | 13 Q