3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.62 ms | 1394 KiB | 15 Q