3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ protected $a1; protected $a2; protected $a3; protected $a4; protected $a5; protected $a6; protected $a7; protected $a8; protected $a9; protected $a10; public function __construct(array $data){ foreach ($data as $k => $v) { $this->$k = $v; } } } $iter = 100000; for ($i=0; $i<$iter; $i++) { $a = new A(array( 'a1' => 'hello', 'a2' => 'hello', 'a3' => 'hello', 'a4' => 'hello', 'a5' => 'hello', 'a6' => 'hello', 'a7' => 'hello', 'a8' => 'hello', 'a9' => 'hello', 'a10' => 'hello' )); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/5soDL
function name:  (null)
number of ops:  11
compiled vars:  !0 = $iter, !1 = $i, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !0, 100000
   21     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
   22     3    >   NEW                                              $5      'A'
   23     4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
   22     6        ASSIGN                                                   !2, $5
   21     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, !0
          9      > JMPNZ                                                    ~9, ->3
   34    10    > > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/5soDL
function name:  __construct
number of ops:  9
compiled vars:  !0 = $data, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1      > FE_RESET_R                                       $3      !0, ->7
          2    > > FE_FETCH_R                                       ~4      $3, !1, ->7
          3    >   ASSIGN                                                   !2, ~4
   16     4        ASSIGN_OBJ                                               !2
          5        OP_DATA                                                  !1
   15     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $3
   18     8      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.21 ms | 1395 KiB | 13 Q