3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = rand(2, PHP_INT_MAX); $range = range(1, $n); foreach ($range as $i){ foreach ($range as $j){ echo $i * $j, "\t"; } echo PHP_EOL; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/jnq7q
function name:  (null)
number of ops:  23
compiled vars:  !0 = $n, !1 = $range, !2 = $i, !3 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 9223372036854775807
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    3     5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    5    10      > FE_RESET_R                                       $8      !1, ->21
         11    > > FE_FETCH_R                                               $8, !2, ->21
    6    12    > > FE_RESET_R                                       $9      !1, ->18
         13    > > FE_FETCH_R                                               $9, !3, ->18
    7    14    >   MUL                                              ~10     !2, !3
         15        ECHO                                                     ~10
         16        ECHO                                                     '%09'
    6    17      > JMP                                                      ->13
         18    >   FE_FREE                                                  $9
    9    19        ECHO                                                     '%0A'
    5    20      > JMP                                                      ->11
         21    >   FE_FREE                                                  $8
   11    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.61 ms | 1395 KiB | 17 Q