3v4l.org

run code in 300+ PHP versions simultaneously
<?php $resultat = array(1,3,4,2,"test", "hello", "world"); for ($i=0; $i <= count($resultat); $i++) if ($j = $i % 2) echo "$i MODULO 2, RESTE: " . $j . "\r\n"; else echo "$i est MODULO 2" . $i = 0;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
filename:       /in/thLdN
function name:  (null)
number of ops:  22
compiled vars:  !0 = $resultat, !1 = $i, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->18
    5     3    >   MOD                                              ~5      !1, 2
          4        ASSIGN                                           ~6      !2, ~5
          5      > JMPZ                                                     ~6, ->12
    6     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~7      !1, '+MODULO+2%2C+RESTE%3A+'
          8        CONCAT                                           ~8      ~7, !2
          9        CONCAT                                           ~9      ~8, '%0D%0A'
         10        ECHO                                                     ~9
         11      > JMP                                                      ->17
    8    12    >   NOP                                                      
         13        FAST_CONCAT                                      ~10     !1, '+est+MODULO+2'
         14        ASSIGN                                           ~11     !1, 0
         15        CONCAT                                           ~12     ~10, ~11
         16        ECHO                                                     ~12
    4    17    >   PRE_INC                                                  !1
         18    >   COUNT                                            ~14     !0
         19        IS_SMALLER_OR_EQUAL                                      !1, ~14
         20      > JMPNZ                                                    ~15, ->3
    8    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.01 ms | 1385 KiB | 13 Q