3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pessoa { protected $nome; public function setName($name) { $this->nome = $name; } } for ($i=0; $i < 500; $i++) { $teste = new Pessoa(); $teste->setNome('Luis'); }
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 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/BC6iN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $i, !1 = $teste
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
   13     2    >   NEW                                              $3      'Pessoa'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   14     5        INIT_METHOD_CALL                                         !1, 'setNome'
          6        SEND_VAL_EX                                              'Luis'
          7        DO_FCALL                                      0          
   12     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 500
         10      > JMPNZ                                                    ~8, ->2
   15    11    > > RETURN                                                   1

Class Pessoa:
Function setname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BC6iN
function name:  setName
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               'nome'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function setname

End of class Pessoa.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.48 ms | 1393 KiB | 13 Q