3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fopen('php://memory', 'w+'); fwrite($fp, "-- \n" . "-- something here\n" . "-- example sql\n" . "-- sql delimiter: ;\n" . "-- \n" . "\n" . "create table t (\n" . " id int\n" . ");\n" ); fseek($fp, 0); echo stream_get_contents($fp), stream_get_contents($fp);

preferences:
60.48 ms | 402 KiB | 5 Q