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 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 26
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/fmvt5
function name:  (null)
number of ops:  28
compiled vars:  !0 = $persons, !1 = $i, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !0, <array>
   22     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->14
   23     3    >   NEW                                              $7      'SomeClass'
          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_DIM                                               !0
         12        OP_DATA                                                  $7
   22    13        PRE_INC                                                  !1
         14    >   IS_SMALLER                                               !1, 1000
         15      > JMPNZ                                                    ~13, ->3
   26    16    > > FE_RESET_R                                       $14     !0, ->26
         17    > > FE_FETCH_R                                       ~15     $14, !2, ->26
         18    >   ASSIGN                                                   !3, ~15
   27    19        CONCAT                                           ~17     !3, '+'
         20        INIT_METHOD_CALL                                         !2, 'getPerson'
         21        DO_FCALL                                      0  $18     
         22        CONCAT                                           ~19     ~17, $18
         23        CONCAT                                           ~20     ~19, '%3Cbr+%2F%3E'
         24        ECHO                                                     ~20
   26    25      > JMP                                                      ->17
         26    >   FE_FREE                                                  $14
   31    27      > 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_OBJ                                               'name'
          4        OP_DATA                                                  !0
   10     5        ASSIGN_OBJ                                               'sname'
          6        OP_DATA                                                  !1
   11     7        ASSIGN_OBJ                                               '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:
139.78 ms | 1387 KiB | 13 Q