3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!empty($_GET['aport'])) shell_exec('echo '$_GET['aport']' >> ports.txt'); if(!empty($_GET['dport'])) shell_exec('grep -v '$_GET['dport']' ports.txt > ports2.txt && mv -f ports2.txt ports.txt'); echo shell_exec('cat ports.txt');
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$_GET' (T_VARIABLE) in /in/VRdTW on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/VRdTW on line 3
Process exited with code 255.

preferences:
175.39 ms | 1395 KiB | 66 Q