3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($x = 1; $x < 10; $x++) { echo $x * $x . PHP_EOL; } echo PHP_EOL; for ($x = 1; $x < 10; $x++) { echo "$x * $x" . PHP_EOL; } echo PHP_EOL; for ($x = 1; $x < 10; $x++) { echo '$x * $x' . PHP_EOL; } echo PHP_EOL; for ($x = 1; $x < 10; $x++) { echo $x . '*' . $x . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 22
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 29
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 29
Branch analysis from position: 36
Branch analysis from position: 29
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 22
Branch analysis from position: 26
Branch analysis from position: 22
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
Branch analysis from position: 11
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/YQK6c
function name:  (null)
number of ops:  37
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 1
          1      > JMP                                                          ->6
    4     2    >   MUL                                                  ~2      !0, !0
          3        CONCAT                                               ~3      ~2, '%0A'
          4        ECHO                                                         ~3
    3     5        PRE_INC                                                      !0
          6    >   IS_SMALLER                                                   !0, 10
          7      > JMPNZ                                                        ~5, ->2
    7     8    >   ECHO                                                         '%0A'
    9     9        ASSIGN                                                       !0, 1
         10      > JMP                                                          ->17
   10    11    >   ROPE_INIT                                         3  ~8      !0
         12        ROPE_ADD                                          1  ~8      ~8, '+%2A+'
         13        ROPE_END                                          2  ~7      ~8, !0
         14        CONCAT                                               ~10     ~7, '%0A'
         15        ECHO                                                         ~10
    9    16        PRE_INC                                                      !0
         17    >   IS_SMALLER                                                   !0, 10
         18      > JMPNZ                                                        ~12, ->11
   13    19    >   ECHO                                                         '%0A'
   15    20        ASSIGN                                                       !0, 1
         21      > JMP                                                          ->24
   16    22    >   ECHO                                                         '%24x+%2A+%24x%0A'
   15    23        PRE_INC                                                      !0
         24    >   IS_SMALLER                                                   !0, 10
         25      > JMPNZ                                                        ~15, ->22
   19    26    >   ECHO                                                         '%0A'
   21    27        ASSIGN                                                       !0, 1
         28      > JMP                                                          ->34
   22    29    >   CONCAT                                               ~17     !0, '%2A'
         30        CONCAT                                               ~18     ~17, !0
         31        CONCAT                                               ~19     ~18, '%0A'
         32        ECHO                                                         ~19
   21    33        PRE_INC                                                      !0
         34    >   IS_SMALLER                                                   !0, 10
         35      > JMPNZ                                                        ~21, ->29
   23    36    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.64 ms | 1738 KiB | 13 Q