3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tri = [1, 1]; var_export($tri); for ($x = 0; $x <= 6; ++$x) { $trinew = [1]; $tri[] = 0; for($y = 0, $count = count($tri) - 1 ; $y < $count; ++$y) { $z = $y + 1; $trinew[] = $tri[$y] + $tri[$z]; } $tri = $trinew; var_export($tri); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 6
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 14
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 6
Branch analysis from position: 31
Branch analysis from position: 6
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 14
Branch analysis from position: 24
Branch analysis from position: 14
filename:       /in/sWcrr
function name:  (null)
number of ops:  32
compiled vars:  !0 = $tri, !1 = $x, !2 = $trinew, !3 = $y, !4 = $count, !5 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_export'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->29
    5     6    >   ASSIGN                                                   !2, <array>
    6     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  0
    7     9        ASSIGN                                                   !3, 0
         10        COUNT                                            ~12     !0
         11        SUB                                              ~13     ~12, 1
         12        ASSIGN                                                   !4, ~13
         13      > JMP                                                      ->22
    8    14    >   ADD                                              ~15     !3, 1
         15        ASSIGN                                                   !5, ~15
    9    16        FETCH_DIM_R                                      ~18     !0, !3
         17        FETCH_DIM_R                                      ~19     !0, !5
         18        ADD                                              ~20     ~18, ~19
         19        ASSIGN_DIM                                               !2
         20        OP_DATA                                                  ~20
    7    21        PRE_INC                                                  !3
         22    >   IS_SMALLER                                               !3, !4
         23      > JMPNZ                                                    ~22, ->14
   11    24    >   ASSIGN                                                   !0, !2
   12    25        INIT_FCALL                                               'var_export'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
    4    28        PRE_INC                                                  !1
         29    >   IS_SMALLER_OR_EQUAL                                      !1, 6
         30      > JMPNZ                                                    ~26, ->6
   13    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.55 ms | 1011 KiB | 14 Q