3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdclass; for($i = 0; $i < 100000; $i++) { $x = new stdclass; $x->o = $o; $o = $x; } echo "end";
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 = 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
Branch analysis from position: 5
filename:       /in/YE5D4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $o, !1 = $i, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdclass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->12
    5     5    >   NEW                                              $7      'stdclass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $7
    6     8        ASSIGN_OBJ                                               !2, 'o'
          9        OP_DATA                                                  !0
    7    10        ASSIGN                                                   !0, !2
    4    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 100000
         13      > JMPNZ                                                    ~13, ->5
    9    14    >   ECHO                                                     'end'
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.05 ms | 1397 KiB | 13 Q