3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nr = [1, 3, 5, 7, 9, 11, 13, 15]; foreach ($nr as $one) { foreach ($nr as $two) { foreach ($nr as $three) { echo $one . ' + ' . $two . ' + ' . $three = ($one + $two + $three) . PHP_EOL; /*if (($one + $two + $three) === 30) { echo $one . ' + ' . $two . ' + ' . $three; }*/ } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 21
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 21
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 17
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/t5auA
function name:  (null)
number of ops:  23
compiled vars:  !0 = $nr, !1 = $one, !2 = $two, !3 = $three
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $5      !0, ->21
          2    > > FE_FETCH_R                                               $5, !1, ->21
    6     3    > > FE_RESET_R                                       $6      !0, ->19
          4    > > FE_FETCH_R                                               $6, !2, ->19
    7     5    > > FE_RESET_R                                       $7      !0, ->17
          6    > > FE_FETCH_R                                               $7, !3, ->17
    9     7    >   CONCAT                                           ~8      !1, '+%2B+'
          8        CONCAT                                           ~9      ~8, !2
          9        CONCAT                                           ~10     ~9, '+%2B+'
         10        ADD                                              ~11     !1, !2
         11        ADD                                              ~12     ~11, !3
         12        CONCAT                                           ~13     ~12, '%0A'
         13        ASSIGN                                           ~14     !3, ~13
         14        CONCAT                                           ~15     ~10, ~14
         15        ECHO                                                     ~15
    7    16      > JMP                                                      ->6
         17    >   FE_FREE                                                  $7
    6    18      > JMP                                                      ->4
         19    >   FE_FREE                                                  $6
    5    20      > JMP                                                      ->2
         21    >   FE_FREE                                                  $5
   15    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.44 ms | 1395 KiB | 13 Q