3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.92 ms | 1384 KiB | 13 Q