3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.61 ms | 1385 KiB | 13 Q