← All tasks
📊
Programming Advanced

Compare Memory Usage: Array vs Generator

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Read a chart comparing peak memory usage when processing 1 million rows with an array versus a generator.

Scenario

A script that builds a huge array of report rows keeps hitting PHP's memory limit.

Ready to try it?

Create a free account and try "Compare Memory Usage: Array vs Generator" free for 7 days, no card required. Earn 90 XP and track your internship progress.

Already have an account? Sign in