3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 2; // zmniejsza wartość tylko przy wyświetlaniu echo '<a href="index.php?id='.($id - 1).'"><div class="propozycja1" style="background-color:red;">1</div></a>'; // predekrementacja - zmniejsza wartość $id echo '<a href="index.php?id='.--$id.'"><div class="propozycja1" style="background-color:red;">1</div></a>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qXP9Z
function name:  (null)
number of ops:  10
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    6     1        SUB                                              ~2      !0, 1
          2        CONCAT                                           ~3      '%3Ca+href%3D%22index.php%3Fid%3D', ~2
          3        CONCAT                                           ~4      ~3, '%22%3E%3Cdiv+class%3D%22propozycja1%22+style%3D%22background-color%3Ared%3B%22%3E1%3C%2Fdiv%3E%3C%2Fa%3E'
          4        ECHO                                                     ~4
    9     5        PRE_DEC                                          ~5      !0
          6        CONCAT                                           ~6      '%3Ca+href%3D%22index.php%3Fid%3D', ~5
          7        CONCAT                                           ~7      ~6, '%22%3E%3Cdiv+class%3D%22propozycja1%22+style%3D%22background-color%3Ared%3B%22%3E1%3C%2Fdiv%3E%3C%2Fa%3E'
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.7 ms | 1397 KiB | 13 Q