3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private static $tt; public static function set($bar){ self::$tt = 'hello world'; echo 'run set: ' . self::$tt; } } Foo::set('ss');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JaDOZ
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', 'set'
          1        SEND_VAL                                                 'ss'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class Foo:
Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JaDOZ
function name:  set
number of ops:  7
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_STATIC_PROP                                       'tt'
          2        OP_DATA                                                  'hello+world'
    8     3        FETCH_STATIC_PROP_R          unknown             ~2      'tt'
          4        CONCAT                                           ~3      'run+set%3A+', ~2
          5        ECHO                                                     ~3
    9     6      > RETURN                                                   null

End of function set

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.33 ms | 1393 KiB | 13 Q