3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a; public function setA($v) { $this->a = $v; } public function setSetA($v) { $this->setA($v); } } $obj = new A(); for ($i=0; $i<=9999999; $i++) { $obj->setA(1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/06KWG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $obj, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->9
   15     5    >   INIT_METHOD_CALL                                         !0, 'setA'
          6        SEND_VAL_EX                                              1
          7        DO_FCALL                                      0          
   14     8        PRE_INC                                                  !1
          9    >   IS_SMALLER_OR_EQUAL                                      !1, 9999999
         10      > JMPNZ                                                    ~8, ->5
   16    11    > > RETURN                                                   1

Class A:
Function seta:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/06KWG
function name:  setA
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               'a'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function seta

Function setseta:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/06KWG
function name:  setSetA
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_METHOD_CALL                                         'setA'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   10     4      > RETURN                                                   null

End of function setseta

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.6 ms | 1395 KiB | 13 Q