3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inizio = microtime(true); echo ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Home</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="./style.css" rel="stylesheet" type="text/css" /> </head> <body>'; $rows = 20; $cols = 10; $x = 1; $sum=0; echo "<table>\n"; for($tr=1;$tr<=1000;$tr++){ for($td=1;$td<=400;$td++){ $x++; $temp=((($td*$tr)+$x)+(rand(-1000, 1000))+($x/$tr))/($x*$x); } $sum+=$temp; } for($tr=1;$tr<=$rows;$tr++){ echo "<tr> "; for($td=1;$td<=$cols;$td++){ $x++; echo "<th> ".$tr.$td." </th> "; } echo "</tr>\n"; } echo "</table>\n"; echo "<p>\n"; echo "<br />\n<br />\n<br />\n"; echo $sum."\n"; echo "<br />\n<br />\n<br />\n Tempo esecuzione: "; echo $tempo = microtime(true) - $inizio."\n </p>\n </body>\n </html>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 12
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 36
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 39
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 36
Branch analysis from position: 51
Branch analysis from position: 36
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 39
Branch analysis from position: 47
Branch analysis from position: 39
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 14
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 12
Branch analysis from position: 34
Branch analysis from position: 12
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 14
Branch analysis from position: 30
Branch analysis from position: 14
filename:       /in/QmuOd
function name:  (null)
number of ops:  65
compiled vars:  !0 = $inizio, !1 = $rows, !2 = $cols, !3 = $x, !4 = $sum, !5 = $tr, !6 = $td, !7 = $temp, !8 = $tempo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $9      
          3        ASSIGN                                                   !0, $9
    3     4        ECHO                                                     '%0A%3C%21DOCTYPE+html+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E+%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22+lang%3D%22en%22+xml%3Alang%3D%22en%22%3E%0A%3Chead%3E%0A%3Ctitle%3EHome%3C%2Ftitle%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Dutf-8%22+%2F%3E%0A%3Clink+href%3D%22.%2Fstyle.css%22+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+%2F%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E'
   12     5        ASSIGN                                                   !1, 20
   13     6        ASSIGN                                                   !2, 10
   14     7        ASSIGN                                                   !3, 1
   15     8        ASSIGN                                                   !4, 0
   16     9        ECHO                                                     '%3Ctable%3E%0A'
   17    10        ASSIGN                                                   !5, 1
         11      > JMP                                                      ->32
   18    12    >   ASSIGN                                                   !6, 1
         13      > JMP                                                      ->28
   19    14    >   PRE_INC                                                  !3
   20    15        MUL                                              ~18     !6, !5
         16        ADD                                              ~19     ~18, !3
         17        INIT_FCALL                                               'rand'
         18        SEND_VAL                                                 -1000
         19        SEND_VAL                                                 1000
         20        DO_ICALL                                         $20     
         21        ADD                                              ~21     ~19, $20
         22        DIV                                              ~22     !3, !5
         23        ADD                                              ~23     ~21, ~22
         24        MUL                                              ~24     !3, !3
         25        DIV                                              ~25     ~23, ~24
         26        ASSIGN                                                   !7, ~25
   18    27        PRE_INC                                                  !6
         28    >   IS_SMALLER_OR_EQUAL                                      !6, 400
         29      > JMPNZ                                                    ~28, ->14
   22    30    >   ASSIGN_OP                                     1          !4, !7
   17    31        PRE_INC                                                  !5
         32    >   IS_SMALLER_OR_EQUAL                                      !5, 1000
         33      > JMPNZ                                                    ~31, ->12
   24    34    >   ASSIGN                                                   !5, 1
         35      > JMP                                                      ->49
   26    36    >   ECHO                                                     '%3Ctr%3E+'
   27    37        ASSIGN                                                   !6, 1
         38      > JMP                                                      ->45
   28    39    >   PRE_INC                                                  !3
   29    40        CONCAT                                           ~35     '%3Cth%3E+', !5
         41        CONCAT                                           ~36     ~35, !6
         42        CONCAT                                           ~37     ~36, '+%3C%2Fth%3E+'
         43        ECHO                                                     ~37
   27    44        PRE_INC                                                  !6
         45    >   IS_SMALLER_OR_EQUAL                                      !6, !2
         46      > JMPNZ                                                    ~39, ->39
   31    47    >   ECHO                                                     '%3C%2Ftr%3E%0A'
   24    48        PRE_INC                                                  !5
         49    >   IS_SMALLER_OR_EQUAL                                      !5, !1
         50      > JMPNZ                                                    ~41, ->36
   34    51    >   ECHO                                                     '%3C%2Ftable%3E%0A'
   35    52        ECHO                                                     '%3Cp%3E%0A'
   36    53        ECHO                                                     '%3Cbr+%2F%3E%0A%3Cbr+%2F%3E%0A%3Cbr+%2F%3E%0A'
   37    54        CONCAT                                           ~42     !4, '%0A'
         55        ECHO                                                     ~42
   38    56        ECHO                                                     '%3Cbr+%2F%3E%0A%3Cbr+%2F%3E%0A%3Cbr+%2F%3E%0A+Tempo+esecuzione%3A+'
   39    57        INIT_FCALL                                               'microtime'
         58        SEND_VAL                                                 <true>
         59        DO_ICALL                                         $43     
         60        SUB                                              ~44     $43, !0
         61        CONCAT                                           ~45     ~44, '%0A%0A%3C%2Fp%3E%0A%0A%3C%2Fbody%3E%0A%0A%3C%2Fhtml%3E'
         62        ASSIGN                                           ~46     !8, ~45
         63        ECHO                                                     ~46
   43    64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.38 ms | 1405 KiB | 17 Q