3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $a; public function set($a) { $this->a = $a; } } $instance = []; for($i=0; $i<10000; $i++) { $instance[] = (new Test)->set($i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/hY7j6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $instance, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, <array>
   14     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
   15     3    >   NEW                                              $5      'Test'
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $5, 'set'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $7      
          8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  $7
   14    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 10000
         12      > JMPNZ                                                    ~9, ->3
   16    13    > > RETURN                                                   1

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

End of function set

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1394 KiB | 13 Q