3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array(); class MyArrayObject{ public $name, $age; public function __construct( $name, $age ) { $this->name = $name; $this->age = $age; } function getName() { return $this->name; } function setName($name) { $this->name = $name; } } for( $x=0;$x<10000;$x++){ $o = new MyArrayObject( 'Adam', 35 ); $name = $o->getName(); $o->setName($name . "2"); $s[] = $o; unset($o); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
filename:       /in/rSsWF
function name:  (null)
number of ops:  22
compiled vars:  !0 = $s, !1 = $x, !2 = $o, !3 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->19
   19     3    >   NEW                                              $6      'MyArrayObject'
          4        SEND_VAL_EX                                              'Adam'
          5        SEND_VAL_EX                                              35
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $6
   20     8        INIT_METHOD_CALL                                         !2, 'getName'
          9        DO_FCALL                                      0  $9      
         10        ASSIGN                                                   !3, $9
   21    11        INIT_METHOD_CALL                                         !2, 'setName'
         12        CONCAT                                           ~11     !3, '2'
         13        SEND_VAL_EX                                              ~11
         14        DO_FCALL                                      0          
   22    15        ASSIGN_DIM                                               !0
         16        OP_DATA                                                  !2
   23    17        UNSET_CV                                                 !2
   18    18        PRE_INC                                                  !1
         19    >   IS_SMALLER                                               !1, 10000
         20      > JMPNZ                                                    ~15, ->3
   24    21    > > RETURN                                                   1

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

End of function __construct

Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rSsWF
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'name'
          1      > RETURN                                                   ~0
   12     2*     > RETURN                                                   null

End of function getname

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

End of function setname

End of class MyArrayObject.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150 ms | 1399 KiB | 13 Q