3v4l.org

run code in 300+ PHP versions simultaneously
<?php function math($x) { $results = $x * $x; return $results; } echo "<table border='1'> <tr> <th>Numbers</th> <th>result</th> </tr>"; for ($x=0; $x<=20; $x++) { echo "<tr>"; echo "<td>" . $x . " * " . $x . "</td>"; echo "<td>" . math($x) . "</td>"; echo "</tr>"; } echo "</table>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
filename:       /in/LZgDO
function name:  (null)
number of ops:  21
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     '%3Ctable+border%3D%271%27%3E%0A%3Ctr%3E%0A%3Cth%3ENumbers%3C%2Fth%3E%0A%3Cth%3Eresult%3C%2Fth%3E%0A%3C%2Ftr%3E'
   18     1        ASSIGN                                                   !0, 0
          2      > JMP                                                      ->17
   20     3    >   ECHO                                                     '%3Ctr%3E'
   21     4        CONCAT                                           ~2      '%3Ctd%3E', !0
          5        CONCAT                                           ~3      ~2, '+%2A+'
          6        CONCAT                                           ~4      ~3, !0
          7        CONCAT                                           ~5      ~4, '%3C%2Ftd%3E'
          8        ECHO                                                     ~5
   22     9        INIT_FCALL                                               'math'
         10        SEND_VAR                                                 !0
         11        DO_FCALL                                      0  $6      
         12        CONCAT                                           ~7      '%3Ctd%3E', $6
         13        CONCAT                                           ~8      ~7, '%3C%2Ftd%3E'
         14        ECHO                                                     ~8
   23    15        ECHO                                                     '%3C%2Ftr%3E'
   18    16        PRE_INC                                                  !0
         17    >   IS_SMALLER_OR_EQUAL                                      !0, 20
         18      > JMPNZ                                                    ~10, ->3
   26    19    >   ECHO                                                     '%3C%2Ftable%3E'
   29    20      > RETURN                                                   1

Function math:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LZgDO
function name:  math
number of ops:  5
compiled vars:  !0 = $x, !1 = $results
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        MUL                                              ~2      !0, !0
          2        ASSIGN                                                   !1, ~2
    8     3      > RETURN                                                   !1
   10     4*     > RETURN                                                   null

End of function math

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.21 ms | 1399 KiB | 14 Q