3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Are you sure you want to do this? Type 'yes' to continue: "; $handle = fopen ("php://stdin","r"); $line = fgets($handle); if(trim($line) != 'yes'){ echo "ABORTING!\n"; exit; } echo "\n"; echo "Thank you, continuing...\n";

preferences:
32.36 ms | 402 KiB | 5 Q