3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo memory_get_usage(), PHP_EOL; $s = str_repeat('c', 1000); echo memory_get_usage(), PHP_EOL; $s = (string) $s; echo memory_get_usage(), PHP_EOL;

preferences:
30.63 ms | 402 KiB | 5 Q