3v4l.org

run code in 500+ PHP versions simultaneously
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { $Panjang = $_POST["Panjang"]; $Lebar = $_POST["Lebar"]; $Luas = $Panjang * $Lebar; echo "Luas Persegi Panjang: $Luas"; } ?> <form method="post"> <label>Panjang:</label> <input type="number" name="Panjang"> <br> <label>Lebar:</label> <input type="number" name="Lebar"> <br> <button type="submit">Hitung Luas</button> </form>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/ZiTiC
function name:  (null)
number of ops:  17
compiled vars:  !0 = $Panjang, !1 = $Lebar, !2 = $Luas
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                          global              ~3      '_SERVER'
          1        FETCH_DIM_R                                          ~4      ~3, 'REQUEST_METHOD'
          2        IS_EQUAL                                                     ~4, 'POST'
          3      > JMPZ                                                         ~5, ->15
    4     4    >   FETCH_R                          global              ~6      '_POST'
          5        FETCH_DIM_R                                          ~7      ~6, 'Panjang'
          6        ASSIGN                                                       !0, ~7
    5     7        FETCH_R                          global              ~9      '_POST'
          8        FETCH_DIM_R                                          ~10     ~9, 'Lebar'
          9        ASSIGN                                                       !1, ~10
    7    10        MUL                                                  ~12     !0, !1
         11        ASSIGN                                                       !2, ~12
    9    12        NOP                                                          
         13        FAST_CONCAT                                          ~14     'Luas+Persegi+Panjang%3A+', !2
         14        ECHO                                                         ~14
   13    15    >   ECHO                                                         '%0A%3Cform+method%3D%22post%22%3E%0A%0A++++%3Clabel%3EPanjang%3A%3C%2Flabel%3E%0A++++%3Cinput+type%3D%22number%22+name%3D%22Panjang%22%3E%0A%0A++++%3Cbr%3E%0A%0A++++%3Clabel%3ELebar%3A%3C%2Flabel%3E%0A++++%3Cinput+type%3D%22number%22+name%3D%22Lebar%22%3E%0A%0A++++%3Cbr%3E%0A%0A++++%3Cbutton+type%3D%22submit%22%3EHitung+Luas%3C%2Fbutton%3E%0A%0A%3C%2Fform%3E'
   28    16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
136.4 ms | 475 KiB | 7 Q