3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass{ public $name; public $sname; public $tname; public function __construct($name,$sname,$tname){ $this->name = $name; $this->sname = $sname; $this->tname = $tname; } public function getPerson(){ return $this->name.' '.$this->sname.' '.$this->tname; } } $persons = array(); for($i = 0;$i<1000;$i++){ $persons[] = new SomeClass('test '.$i,'sname test '.$i,'tname test '.$i); } foreach($persons as $k=>$v){ echo $k.' '.$v->getPerson().'<br />'; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 27
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 27
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/fmvt5
function name:  (null)
number of ops:  29
compiled vars:  !0 = $persons, !1 = $i, !2 = $v, !3 = $k
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  20     0  E >   QM_ASSIGN                                                !0
  22     1        QM_ASSIGN                                                !1
         2      > JMP                                                      ->15
  23     3    >   NEW                                              $7      :49
         4        CONCAT                                           ~8      'test+', !1
         5        SEND_VAL_EX                                              ~8
         6        CONCAT                                           ~9      'sname+test+', !1
         7        SEND_VAL_EX                                              ~9
         8        CONCAT                                           ~10     'tname+test+', !1
         9        SEND_VAL_EX                                              ~10
        10        DO_FCALL                                      0          
        11        ASSIGN_ADD                                    0          !0
        12        OP_DATA                                                  $7
  22    13        POST_INC                                         ~12     !1
        14        FREE                                                     ~12
        15    >   IS_SMALLER_OR_EQUAL                              ~13     !1, 1000
        16      > JMPNZ                                                    ~13, ->3
  26    17    > > FE_RESET_R                                       $14     !0, ->27
        18    > > FE_FETCH_R                                       ~15     $14, !2, ->27
        19    >   QM_ASSIGN                                                !3
  27    20        CONCAT                                           ~17     !3, '+'
        21        INIT_METHOD_CALL                                         !2, 'getPerson'
        22        DO_FCALL                                      0  $18     
        23        CONCAT                                           ~19     ~17, $18
        24        CONCAT                                           ~20     ~19, '%3Cbr+%2F%3E'
        25        ASSIGN_OBJ                                               ~20
  26    26      > JMP                                                      ->18
        27    >   FE_FREE                                                  $14
  31    28      > RETURN                                                   1

Class SomeClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fmvt5
function name:  __construct
number of ops:  10
compiled vars:  !0 = $name, !1 = $sname, !2 = $tname
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   RECV                                             !0      
         1        RECV                                             !1      
         2        RECV                                             !2      
   9     3        ASSIGN_SUB                                    0          'name'
         4        OP_DATA                                                  !0
  10     5        ASSIGN_SUB                                   24          'sname'
         6        OP_DATA                                                  !1
  11     7        ASSIGN_SUB                                   48          'tname'
         8        OP_DATA                                                  !2
  12     9      > RETURN                                                   null

End of function __construct

Function getperson:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fmvt5
function name:  getPerson
number of ops:  9
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  15     0  E >   FETCH_OBJ_R                                      ~0      'name'
         1        CONCAT                                           ~1      ~0, '+'
         2        FETCH_OBJ_R                                      ~2      'sname'
         3        CONCAT                                           ~3      ~1, ~2
         4        CONCAT                                           ~4      ~3, '+'
         5        FETCH_OBJ_R                                      ~5      'tname'
         6        CONCAT                                           ~6      ~4, ~5
         7      > RETURN                                                   ~6
  16     8*     > RETURN                                                   null

End of function getperson

End of class SomeClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
22.8 ms | 419 KiB | 13 Q