3v4l.org

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

Class Test:
Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RbYlP
function name:  set
number of ops:  6
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        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
   10     5*     > RETURN                                                   null

End of function set

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.62 ms | 1398 KiB | 13 Q