3v4l.org

run code in 300+ PHP versions simultaneously
<?php function make_link($link_text, $div, $url){ echo" <a href='?$url' onclick='return false' onmousedown='javascript:swapContent(\"$url\", $div)'>$link_text</a>"; } echo "</td> <td>".make_link("upload", "more_content", "url=upload")."</td> <td>".make_link("Notifications", "more_content", "url=notifications")."</td> <td>".make_link("bio", "more_content", "url=bio")."</td> </tr> </table> </div> ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T9DdI
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'make_link'
          1        SEND_VAL                                                 'upload'
          2        SEND_VAL                                                 'more_content'
          3        SEND_VAL                                                 'url%3Dupload'
          4        DO_FCALL                                      0  $0      
          5        CONCAT                                           ~1      '%3C%2Ftd%3E%0A%0A%3Ctd%3E', $0
          6        CONCAT                                           ~2      ~1, '%3C%2Ftd%3E%0A%0A%3Ctd%3E'
   10     7        INIT_FCALL                                               'make_link'
          8        SEND_VAL                                                 'Notifications'
          9        SEND_VAL                                                 'more_content'
         10        SEND_VAL                                                 'url%3Dnotifications'
         11        DO_FCALL                                      0  $3      
         12        CONCAT                                           ~4      ~2, $3
         13        CONCAT                                           ~5      ~4, '%3C%2Ftd%3E%0A%0A%3Ctd%3E'
   12    14        INIT_FCALL                                               'make_link'
         15        SEND_VAL                                                 'bio'
         16        SEND_VAL                                                 'more_content'
         17        SEND_VAL                                                 'url%3Dbio'
         18        DO_FCALL                                      0  $6      
         19        CONCAT                                           ~7      ~5, $6
         20        CONCAT                                           ~8      ~7, '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A%3C%2Fdiv%3E%0A%0A%0A%0A%0A%0A%0A'
         21        ECHO                                                     ~8
   22    22      > RETURN                                                   1

Function make_link:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T9DdI
function name:  make_link
number of ops:  14
compiled vars:  !0 = $link_text, !1 = $div, !2 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        ROPE_INIT                                     9  ~4      '%0A%3Ca+href%3D%27%3F'
    4     4        ROPE_ADD                                      1  ~4      ~4, !2
          5        ROPE_ADD                                      2  ~4      ~4, '%27+onclick%3D%27return+false%27+onmousedown%3D%27javascript%3AswapContent%28%22'
          6        ROPE_ADD                                      3  ~4      ~4, !2
          7        ROPE_ADD                                      4  ~4      ~4, '%22%2C+'
          8        ROPE_ADD                                      5  ~4      ~4, !1
          9        ROPE_ADD                                      6  ~4      ~4, '%29%27%3E'
         10        ROPE_ADD                                      7  ~4      ~4, !0
         11        ROPE_END                                      8  ~3      ~4, '%3C%2Fa%3E'
         12        ECHO                                                     ~3
    5    13      > RETURN                                                   null

End of function make_link

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.51 ms | 1403 KiB | 16 Q