3v4l.org

run code in 300+ PHP versions simultaneously
<?php <a class='but_add' href='".if(isset($_SESSION['user_id'])){."'addItem.php?add=$row[Product_ID]'".}else{."'login.php'".}."'><i class='far fa-plus-square fa-s'></i> Add</a>
Output for 7.1.0 - 7.1.15, 7.2.0 - 7.2.3
Parse error: syntax error, unexpected '<', expecting end of file in /in/EVXck on line 2
Process exited with code 255.

preferences:
151.25 ms | 1167 KiB | 6 Q