3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = array ( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ); $i = 10; foreach($n as $num) { print(str_pad("$num", 2, ' ')); print(' | '); for($x=1;$x<=$i;$x++) { $d = number_format($num/$x, 2, ',', '.'); $a = "$num/$x"; $b = "= $d"; print(str_pad($a, 5, ' ')); print(str_pad($b, 8, ' ')); print(str_pad('| ', 2, ' ')); } print(str_pad("\n", (15*$i)+5, '-')); print("\n"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 60
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 60
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 14
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 14
Branch analysis from position: 50
Branch analysis from position: 14
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
filename:       /in/oMG99
function name:  (null)
number of ops:  62
compiled vars:  !0 = $n, !1 = $i, !2 = $num, !3 = $x, !4 = $d, !5 = $a, !6 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   25     1        ASSIGN                                                   !1, 10
   27     2      > FE_RESET_R                                       $9      !0, ->60
          3    > > FE_FETCH_R                                               $9, !2, ->60
   29     4    >   INIT_FCALL                                               'str_pad'
          5        CAST                                          6  ~10     !2
          6        SEND_VAL                                                 ~10
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 '+'
          9        DO_ICALL                                         $11     
         10        ECHO                                                     $11
   30    11        ECHO                                                     '+%7C+'
   31    12        ASSIGN                                                   !3, 1
         13      > JMP                                                      ->48
   33    14    >   INIT_FCALL                                               'number_format'
         15        DIV                                              ~13     !2, !3
         16        SEND_VAL                                                 ~13
         17        SEND_VAL                                                 2
         18        SEND_VAL                                                 '%2C'
         19        SEND_VAL                                                 '.'
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !4, $14
   35    22        ROPE_INIT                                     3  ~17     !2
         23        ROPE_ADD                                      1  ~17     ~17, '%2F'
         24        ROPE_END                                      2  ~16     ~17, !3
         25        ASSIGN                                                   !5, ~16
   36    26        NOP                                                      
         27        FAST_CONCAT                                      ~20     '%3D+', !4
         28        ASSIGN                                                   !6, ~20
   38    29        INIT_FCALL                                               'str_pad'
         30        SEND_VAR                                                 !5
         31        SEND_VAL                                                 5
         32        SEND_VAL                                                 '+'
         33        DO_ICALL                                         $22     
         34        ECHO                                                     $22
   39    35        INIT_FCALL                                               'str_pad'
         36        SEND_VAR                                                 !6
         37        SEND_VAL                                                 8
         38        SEND_VAL                                                 '+'
         39        DO_ICALL                                         $23     
         40        ECHO                                                     $23
   40    41        INIT_FCALL                                               'str_pad'
         42        SEND_VAL                                                 '%7C+'
         43        SEND_VAL                                                 2
         44        SEND_VAL                                                 '+'
         45        DO_ICALL                                         $24     
         46        ECHO                                                     $24
   31    47        PRE_INC                                                  !3
         48    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         49      > JMPNZ                                                    ~26, ->14
   43    50    >   INIT_FCALL                                               'str_pad'
         51        SEND_VAL                                                 '%0A'
         52        MUL                                              ~27     !1, 15
         53        ADD                                              ~28     ~27, 5
         54        SEND_VAL                                                 ~28
         55        SEND_VAL                                                 '-'
         56        DO_ICALL                                         $29     
         57        ECHO                                                     $29
   44    58        ECHO                                                     '%0A'
   27    59      > JMP                                                      ->3
         60    >   FE_FREE                                                  $9
   45    61      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.06 ms | 1400 KiB | 17 Q