3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 5000; $i++) { $$i = new \stdClass; $$i->test = 'test'; count((array) $$i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/rbUBK
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->14
    4     2    >   NEW                                              $3      'stdClass'
          3        DO_FCALL                                      0          
          4        FETCH_W                      local               $2      !0
          5        ASSIGN                                                   $2, $3
    6     6        FETCH_W                      local               $6      !0
          7        ASSIGN_OBJ                                               $6, 'test'
          8        OP_DATA                                                  'test'
    8     9        FETCH_R                      local               ~8      !0
         10        CAST                                          7  ~9      ~8
         11        COUNT                                            ~10     ~9
         12        FREE                                                     ~10
    3    13        PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 5000
         15      > JMPNZ                                                    ~12, ->2
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.47 ms | 1393 KiB | 13 Q