3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tri = [1, 1]; for ($x = 0; $x <= 6; ++$x) { var_export($tri); $trinew = [1]; for($y = 0, $count = count($tri); $y < $count; ++$y) { $z = $y + 1; $trinew[] = $tri[$y] + ($tri[$z] ?? 0); } $tri = $trinew; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 3
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 11
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 3
Branch analysis from position: 27
Branch analysis from position: 3
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 11
Branch analysis from position: 23
Branch analysis from position: 11
filename:       /in/ugcIo
function name:  (null)
number of ops:  28
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        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->25
    4     3    >   INIT_FCALL                                               'var_export'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    5     6        ASSIGN                                                   !2, <array>
    6     7        ASSIGN                                                   !3, 0
          8        COUNT                                            ~11     !0
          9        ASSIGN                                                   !4, ~11
         10      > JMP                                                      ->21
    7    11    >   ADD                                              ~13     !3, 1
         12        ASSIGN                                                   !5, ~13
    8    13        FETCH_DIM_R                                      ~16     !0, !3
         14        FETCH_DIM_IS                                     ~17     !0, !5
         15        COALESCE                                         ~18     ~17
         16        QM_ASSIGN                                        ~18     0
         17        ADD                                              ~19     ~16, ~18
         18        ASSIGN_DIM                                               !2
         19        OP_DATA                                                  ~19
    6    20        PRE_INC                                                  !3
         21    >   IS_SMALLER                                               !3, !4
         22      > JMPNZ                                                    ~21, ->11
   10    23    >   ASSIGN                                                   !0, !2
    3    24        PRE_INC                                                  !1
         25    >   IS_SMALLER_OR_EQUAL                                      !1, 6
         26      > JMPNZ                                                    ~24, ->3
   11    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.34 ms | 1011 KiB | 14 Q