3v4l.org

run code in 300+ PHP versions simultaneously
<?php class t0 { var $i = 0; function __get($name) { return $this->name = ++self::$i . ' hooys'; } } class t1 extends t0 {} class t2 extends t0 {} class t3 extends t0 {} for ($i = 0; $i < 10000; ++$i) { $className = 't' . $i % 4; $tt = new $className(); $tt->$i . ''; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/gata4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $className, !2 = $tt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->13
   16     2    >   MOD                                              ~4      !0, 4
          3        CONCAT                                           ~5      't', ~4
          4        ASSIGN                                                   !1, ~5
   17     5        FETCH_CLASS                                   0  $7      !1
          6        NEW                                              $8      $7
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $8
   18     9        FETCH_OBJ_R                                      ~11     !2, !0
         10        CONCAT                                           ~12     ~11, ''
         11        FREE                                                     ~12
   15    12        PRE_INC                                                  !0
         13    >   IS_SMALLER                                               !0, 10000
         14      > JMPNZ                                                    ~14, ->2
   19    15    > > RETURN                                                   1

Class t0:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gata4
function name:  __get
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        PRE_INC_STATIC_PROP                              ~2      'i'
          2        CONCAT                                           ~3      ~2, '+hooys'
          3        ASSIGN_OBJ                                       ~1      'name'
          4        OP_DATA                                                  ~3
          5      > RETURN                                                   ~1
    8     6*     > RETURN                                                   null

End of function __get

End of class t0.

Class t1:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gata4
function name:  __get
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        PRE_INC_STATIC_PROP                              ~2      'i'
          2        CONCAT                                           ~3      ~2, '+hooys'
          3        ASSIGN_OBJ                                       ~1      'name'
          4        OP_DATA                                                  ~3
          5      > RETURN                                                   ~1
    8     6*     > RETURN                                                   null

End of function __get

End of class t1.

Class t2:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gata4
function name:  __get
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        PRE_INC_STATIC_PROP                              ~2      'i'
          2        CONCAT                                           ~3      ~2, '+hooys'
          3        ASSIGN_OBJ                                       ~1      'name'
          4        OP_DATA                                                  ~3
          5      > RETURN                                                   ~1
    8     6*     > RETURN                                                   null

End of function __get

End of class t2.

Class t3:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gata4
function name:  __get
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        PRE_INC_STATIC_PROP                              ~2      'i'
          2        CONCAT                                           ~3      ~2, '+hooys'
          3        ASSIGN_OBJ                                       ~1      'name'
          4        OP_DATA                                                  ~3
          5      > RETURN                                                   ~1
    8     6*     > RETURN                                                   null

End of function __get

End of class t3.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.3 ms | 939 KiB | 14 Q