3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected static $foo; public static function setFoo($foo) { static::$foo = $foo; } } Foo::setFoo('bar');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fuPWY
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'Foo', 'setFoo'
          1        SEND_VAL                                                 'bar'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class Foo:
Function setfoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fuPWY
function name:  setFoo
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_STATIC_PROP                                       'foo'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function setfoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.52 ms | 1392 KiB | 13 Q