3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($x=0;$x<20;$x++) { $col = ((($x+1)/2)%2)?"8":"4"; echo "The col for loop ".$x." is col".$col."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/GHGVp
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x, !1 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->16
    6     2    >   ADD                                              ~3      !0, 1
          3        DIV                                              ~4      ~3, 2
          4        MOD                                              ~5      ~4, 2
          5      > JMPZ                                                     ~5, ->8
          6    >   QM_ASSIGN                                        ~6      '8'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~6      '4'
          9    >   ASSIGN                                                   !1, ~6
    8    10        CONCAT                                           ~8      'The+col+for+loop+', !0
         11        CONCAT                                           ~9      ~8, '+is+col'
         12        CONCAT                                           ~10     ~9, !1
         13        CONCAT                                           ~11     ~10, '%0A'
         14        ECHO                                                     ~11
    3    15        PRE_INC                                                  !0
         16    >   IS_SMALLER                                               !0, 20
         17      > JMPNZ                                                    ~13, ->2
   10    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.15 ms | 1398 KiB | 13 Q