3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ѕtatic { private static $tatic; public static function ѕtatic() { if (!isset(self::$tatic)) { static::$tatic = new static; } return static::$tatic; } } var_dump(Ѕtatic::ѕtatic());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OIaPS
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  '%D0%85tatic', '%D1%95tatic'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class Ѕtatic:
Function %D1%95tatic:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/OIaPS
function name:  ѕtatic
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ISSET_ISEMPTY_STATIC_PROP                        ~0      'tatic'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->7
    7     3    >   NEW                          static              $3      
          4        DO_FCALL                                      0          
          5        ASSIGN_STATIC_PROP                                       'tatic'
          6        OP_DATA                                                  $3
   10     7    >   FETCH_STATIC_PROP_R          unknown             ~5      'tatic'
          8      > RETURN                                                   ~5
   11     9*     > RETURN                                                   null

End of function %D1%95tatic

End of class Ѕtatic.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.84 ms | 1395 KiB | 15 Q