3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static public $a; protected $b; public function __constract() { $this->b = & $a; } } A::$a = new A; for ($x = 0; $x < 100; $x++) { new A; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/2lJdZ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN_STATIC_PROP                                       'a', 'A'
          3        OP_DATA                                                  $2
   14     4        ASSIGN                                                   !0, 0
          5      > JMP                                                      ->10
   15     6    >   NEW                                              $5      'A'
          7        DO_FCALL                                      0          
          8        FREE                                                     $5
   14     9        PRE_INC                                                  !0
         10    >   IS_SMALLER                                               !0, 100
         11      > JMPNZ                                                    ~8, ->6
   16    12    > > RETURN                                                   1

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

End of function __constract

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.1 ms | 1394 KiB | 13 Q