3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head lang="de"> <title>Anschrift</title> <meta charset="UTF-8"> <script type="text/javascript"> function showadressfield(participant) { if ( document.getElementById("check"+participant).checked == true ) { document.getElementById("adresse"+participant).style.display ="inline"; } else { document.getElementById("adresse"+participant).style.display ="none"; } } </script> </head> <body> <?php for ($participants=1;$participants<=5;$participants++){ echo 'Teilnehmer '.$participants.' <br><input type="text" name="addresse" placeholder="Name"> <br>abweichende Anschrift <input type="checkbox" id="check'.$participants.'" onClick="showadressfield('.$participants.')"><br> <div style="display:none" id="adresse'.$participants.'" > <input type="text" name="addresse" placeholder="Adresse"><br> <input type="text" name="plz" placeholder="Postleitzahl"> </div><br><hr>'; }; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/XUhMY
function name:  (null)
number of ops:  17
compiled vars:  !0 = $participants
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A++++%3Chead+lang%3D%22de%22%3E%0A++++++++%3Ctitle%3EAnschrift%3C%2Ftitle%3E%0A++++++++%3Cmeta+charset%3D%22UTF-8%22%3E%0A++++++++%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A++++++++++++function+showadressfield%28participant%29%0A++++++++++++%7B%0A++++++++++++++++if+%28+document.getElementById%28%22check%22%2Bparticipant%29.checked+%3D%3D+true+%29%0A++++++++++++++++%7B%0A++++++++++++++++++++document.getElementById%28%22adresse%22%2Bparticipant%29.style.display+%3D%22inline%22%3B%0A++++++++++++++++%7D+++else+%7B%0A++++++++++++++++++++document.getElementById%28%22adresse%22%2Bparticipant%29.style.display+%3D%22none%22%3B%0A++++++++++++++++%7D%0A++++++++++++%7D%0A++++++++%3C%2Fscript%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++'
   20     1        ASSIGN                                                   !0, 1
          2      > JMP                                                      ->13
   21     3    >   CONCAT                                           ~2      'Teilnehmer+', !0
          4        CONCAT                                           ~3      ~2, '%0A++++++++++++++++++++++++%3Cbr%3E%3Cinput+type%3D%22text%22+name%3D%22addresse%22+placeholder%3D%22Name%22%3E%0A++++++++++++++++++++++++%3Cbr%3Eabweichende+Anschrift+%3Cinput+type%3D%22checkbox%22+id%3D%22check'
   23     5        CONCAT                                           ~4      ~3, !0
          6        CONCAT                                           ~5      ~4, '%22+onClick%3D%22showadressfield%28'
          7        CONCAT                                           ~6      ~5, !0
          8        CONCAT                                           ~7      ~6, '%29%22%3E%3Cbr%3E%0A++++++++++++++++++++++++%3Cdiv+style%3D%22display%3Anone%22+id%3D%22adresse'
   24     9        CONCAT                                           ~8      ~7, !0
         10        CONCAT                                           ~9      ~8, '%22+%3E%0A++++++++++++++++++++++++++++%3Cinput+type%3D%22text%22+name%3D%22addresse%22+placeholder%3D%22Adresse%22%3E%3Cbr%3E%0A++++++++++++++++++++++++++++%3Cinput+type%3D%22text%22+name%3D%22plz%22+placeholder%3D%22Postleitzahl%22%3E%0A++++++++++++++++++++++++%3C%2Fdiv%3E%3Cbr%3E%3Chr%3E'
         11        ECHO                                                     ~9
   20    12        PRE_INC                                                  !0
         13    >   IS_SMALLER_OR_EQUAL                                      !0, 5
         14      > JMPNZ                                                    ~11, ->3
   30    15    >   ECHO                                                     '++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   31    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.72 ms | 1399 KiB | 13 Q