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) % 2 == 0) { echo $one . ' + ' . $two . ' + ' . $three; } /*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 = 22
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 22
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 17
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 18
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/0JY6N
function name:  (null)
number of ops:  24
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, ->22
          2    > > FE_FETCH_R                                               $5, !1, ->22
    6     3    > > FE_RESET_R                                       $6      !0, ->20
          4    > > FE_FETCH_R                                               $6, !2, ->20
    7     5    > > FE_RESET_R                                       $7      !0, ->18
          6    > > FE_FETCH_R                                               $7, !3, ->18
   11     7    >   ADD                                              ~8      !1, !2
          8        ADD                                              ~9      ~8, !3
          9        MOD                                              ~10     ~9, 2
         10        IS_EQUAL                                                 ~10, 0
         11      > JMPZ                                                     ~11, ->17
   12    12    >   CONCAT                                           ~12     !1, '+%2B+'
         13        CONCAT                                           ~13     ~12, !2
         14        CONCAT                                           ~14     ~13, '+%2B+'
         15        CONCAT                                           ~15     ~14, !3
         16        ECHO                                                     ~15
    7    17    > > JMP                                                      ->6
         18    >   FE_FREE                                                  $7
    6    19      > JMP                                                      ->4
         20    >   FE_FREE                                                  $6
    5    21      > JMP                                                      ->2
         22    >   FE_FREE                                                  $5
   19    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.74 ms | 1386 KiB | 13 Q